From ac6ad162ba114bed3ecea439cce78ddf62742224 Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 25 Feb 2013 16:36:02 +0000 Subject: [PATCH] clear find cache when adding item --- static/js/pandora/utils.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/utils.js b/static/js/pandora/utils.js index f2b15ed5..cfc4f3c4 100644 --- a/static/js/pandora/utils.js +++ b/static/js/pandora/utils.js @@ -4,6 +4,7 @@ pandora.addItem = function() { pandora.api.add(function(result) { + Ox.Request.clearCache('find'); pandora.UI.set({ item: result.data.id, itemView: 'info' @@ -222,7 +223,7 @@ pandora.clearIconCache = function(item) { xhr.send(); }); }); -} +}; pandora.clearListIconCache = function(list) { ['', 256].forEach(function(size) { @@ -231,7 +232,7 @@ pandora.clearListIconCache = function(list) { xhr.open('POST', url); xhr.send(); }); -} +}; pandora.clickLink = function(e) { var match = e.target.id.match(/^embed(\d+)$/)