clear list icons on edit

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

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