From 1533e2ca64a67021dc8630df696aa5b7eb3bad03 Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 11 Feb 2013 17:48:49 +0530 Subject: [PATCH] in updateItemContext, reload list if context stays the same --- static/js/pandora/utils.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/static/js/pandora/utils.js b/static/js/pandora/utils.js index 450a2c028..ded8e2245 100644 --- a/static/js/pandora/utils.js +++ b/static/js/pandora/utils.js @@ -1245,8 +1245,8 @@ pandora.unloadWindow = function() { }; pandora.updateItemContext = function() { + Ox.Request.clearCache('find'); if (!Ox.isEqual(pandora.user.ui.find, pandora.site.user.ui.find)) { - Ox.Request.clearCache('find'); pandora.api.find({ query: pandora.user.ui.find, positions: [pandora.user.ui.item], @@ -1256,8 +1256,12 @@ pandora.updateItemContext = function() { pandora.stayInItemView = true; pandora.UI.set({find: pandora.site.user.ui.find}); pandora.$ui.contentPanel.replaceElement(0, pandora.$ui.browser = pandora.ui.browser()); + } else { + pandora.$ui.browser.reloadList(); } }); + } else { + pandora.$ui.browser.reloadList(); } };