clear list icons on edit

This commit is contained in:
j 2012-08-17 17:41:00 +02:00
parent 189d0ac249
commit 4be0904840
2 changed files with 10 additions and 0 deletions

View file

@ -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});
}

View file

@ -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