add modified date to timelines, they might change too (possibly add new timestamp to not reload timelines each time any metadata changes)

This commit is contained in:
j 2013-06-29 10:03:29 +00:00
parent 9f68f5a1c6
commit b99e57ba15
2 changed files with 4 additions and 4 deletions

View file

@ -27,13 +27,13 @@ pandora.ui.editor = function(data) {
enableSubtitles: ui.videoSubtitles,
find: ui.itemFind,
getFrameURL: function(position) {
return '/' + ui.item + '/' + ui.videoResolution + 'p' + position + '.jpg';
return '/' + ui.item + '/' + ui.videoResolution + 'p' + position + '.jpg?' + data.modified;
},
getLargeTimelineURL: function(type, i) {
return '/' + ui.item + '/timeline' + type + '64p' + i + '.jpg';
return '/' + ui.item + '/timeline' + type + '64p' + i + '.jpg?' + data.modified;
},
getSmallTimelineURL: function(type, i) {
return '/' + ui.item + '/timeline' + type + '16p' + i + '.jpg';
return '/' + ui.item + '/timeline' + type + '16p' + i + '.jpg?' + data.modified;
},
height: pandora.$ui.contentPanel.size(1),
id: 'editor',

View file

@ -14,7 +14,7 @@ pandora.ui.item = function() {
id: pandora.user.ui.item,
keys: isVideoView ? [
'cuts', 'director', 'duration', 'editable', 'layers',
'parts', 'posterFrame', 'rendered', 'rightslevel',
'modified', 'parts', 'posterFrame', 'rendered', 'rightslevel',
'size', 'title', 'videoRatio', 'year'
] : pandora.user.ui.itemView == 'documents' ? [
'director', 'documents', 'duration', 'editable',