From b99e57ba15a08524cac69559bdaab59796b02a22 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 29 Jun 2013 10:03:29 +0000 Subject: [PATCH] add modified date to timelines, they might change too (possibly add new timestamp to not reload timelines each time any metadata changes) --- static/js/pandora/editor.js | 6 +++--- static/js/pandora/item.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/static/js/pandora/editor.js b/static/js/pandora/editor.js index 02378735b..c584d7da2 100644 --- a/static/js/pandora/editor.js +++ b/static/js/pandora/editor.js @@ -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', diff --git a/static/js/pandora/item.js b/static/js/pandora/item.js index 48b361f3a..5f48e506f 100644 --- a/static/js/pandora/item.js +++ b/static/js/pandora/item.js @@ -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',