diff --git a/static/js/pandora/listDialog.js b/static/js/pandora/listDialog.js index b7c3b204..e1a00eef 100644 --- a/static/js/pandora/listDialog.js +++ b/static/js/pandora/listDialog.js @@ -474,6 +474,7 @@ pandora.ui.listIconPanel = function(listData) { src: '/list/' + listData.id + '/icon.jpg?' + Ox.uid() }); pandora.$ui.info.updateListInfo(); + pandora.clearListIconCache(listData.id); }); $preview.options({position: position}); } diff --git a/static/js/pandora/utils.js b/static/js/pandora/utils.js index d7164548..c545fd70 100644 --- a/static/js/pandora/utils.js +++ b/static/js/pandora/utils.js @@ -193,6 +193,15 @@ pandora.clearIconCache = function(item) { }); } +pandora.clearListIconCache = function(list) { + ['', 256].forEach(function(size) { + var url = '/list/' + list + '/icon' + size + '.jpg', + xhr = new XMLHttpRequest(); + xhr.open('POST', url); + xhr.send(); + }); +} + pandora.clickLink = function(e) { if ( e.target.hostname == document.location.hostname