From 97e837efd9ef67c61dcf71f1a0a8a2efdedef29c Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 12 Feb 2013 07:28:09 +0530 Subject: [PATCH] if sort is 'modified', reload browser after changing poster or poster frame --- static/js/pandora/editor.js | 4 ++++ static/js/pandora/infoView.0xdb.js | 3 +++ 2 files changed, 7 insertions(+) diff --git a/static/js/pandora/editor.js b/static/js/pandora/editor.js index 0b5a4426..d67f16fd 100644 --- a/static/js/pandora/editor.js +++ b/static/js/pandora/editor.js @@ -197,6 +197,10 @@ pandora.ui.editor = function(data) { position: data.position }); } + if (ui.sort[0].key == 'modified') { + Ox.Request.clearCache('find'); + pandora.$ui.browser.reloadList(); + } }); }, removeannotation: function(data) { diff --git a/static/js/pandora/infoView.0xdb.js b/static/js/pandora/infoView.0xdb.js index 70349082..e37c27d9 100644 --- a/static/js/pandora/infoView.0xdb.js +++ b/static/js/pandora/infoView.0xdb.js @@ -877,6 +877,9 @@ pandora.ui.infoView = function(data) { ui.icons == 'posters' ? 'poster' : 'icon' ) + '128.jpg?' + Ox.uid()}); }); + if (ui.sort[0].key == 'modified') { + pandora.$ui.browser.reloadList(); + } }); } })