forked from 0x2620/pandora
clear list icons on edit
This commit is contained in:
parent
189d0ac249
commit
4be0904840
2 changed files with 10 additions and 0 deletions
|
@ -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});
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue