This commit is contained in:
j 2012-02-16 10:30:52 +00:00
parent 00f46f1dbe
commit 5d0003fa95
2 changed files with 22 additions and 17 deletions

View file

@ -143,11 +143,6 @@
"autocomplete": true,
"find": true
},
{
"id": "keywords",
"title": "Keywords",
"type": "layer"
},
{
"id": "director",
"title": "Director",
@ -201,8 +196,8 @@
//"format": {"type": "date", "args": ["%a, %b %e, %Y"]}
},
{
"id": "description",
"title": "Description",
"id": "summary",
"title": "Summary",
"type": "text",
"find": true
},
@ -221,22 +216,32 @@
{
"id": "places",
"title": "Places",
"type": "layer"
"type": "layer",
"find": true
},
{
"id": "events",
"title": "Events",
"type": "layer"
"type": "layer",
"find": true
},
{
"id": "keywords",
"title": "Keywords",
"type": "layer",
"find": true
},
{
"id": "descriptions",
"title": "Descriptions",
"type": "layer"
"type": "layer",
"find": true
},
{
"id": "transcripts",
"title": "Transcripts",
"type": "layer"
"type": "layer",
"find": true
},
{
"id": "duration",

View file

@ -358,7 +358,7 @@ pandora.ui.infoView = function(data) {
$('<div>').css(css).html(html).appendTo($center);
}
// Description -------------------------------------------------------------
// Summary -------------------------------------------------------------
if (canEdit) {
$('<div>')
@ -368,22 +368,22 @@ pandora.ui.infoView = function(data) {
clickLink: pandora.clickLink,
editable: canEdit,
maxHeight: Infinity,
placeholder: formatLight('No description'),
placeholder: formatLight('No Summary'),
tooltip: canEdit ? 'Doubleclick to edit' : '',
type: 'textarea',
value: data.description || '',
value: data.summary || '',
//width: 300
})
.bindEvent({
submit: function(event) {
editMetadata('description', event.value);
editMetadata('summary', event.value);
}
})
.css(css)
)
.appendTo($center);
} else if(data.description) {
$('<div>').css(css).html(data.description).appendTo($center);
} else if(data.summary) {
$('<div>').css(css).html(data.summary).appendTo($center);
}
// License -----------------------------------------------------------------