clear find cache when adding item

This commit is contained in:
rolux 2013-02-25 16:36:02 +00:00
parent 1594bec79e
commit ac6ad162ba

View file

@ -4,6 +4,7 @@
pandora.addItem = function() { pandora.addItem = function() {
pandora.api.add(function(result) { pandora.api.add(function(result) {
Ox.Request.clearCache('find');
pandora.UI.set({ pandora.UI.set({
item: result.data.id, item: result.data.id,
itemView: 'info' itemView: 'info'
@ -222,7 +223,7 @@ pandora.clearIconCache = function(item) {
xhr.send(); xhr.send();
}); });
}); });
} };
pandora.clearListIconCache = function(list) { pandora.clearListIconCache = function(list) {
['', 256].forEach(function(size) { ['', 256].forEach(function(size) {
@ -231,7 +232,7 @@ pandora.clearListIconCache = function(list) {
xhr.open('POST', url); xhr.open('POST', url);
xhr.send(); xhr.send();
}); });
} };
pandora.clickLink = function(e) { pandora.clickLink = function(e) {
var match = e.target.id.match(/^embed(\d+)$/) var match = e.target.id.match(/^embed(\d+)$/)