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

View file

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