From 91f2c6fe35861204a0765b737a5ad5cfa7aa3a4c Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 11 Nov 2011 14:12:51 +0000 Subject: [PATCH] when updating a list icon, update it in folder and info too --- static/js/pandora/info.js | 2 -- static/js/pandora/listDialog.js | 10 +++++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/static/js/pandora/info.js b/static/js/pandora/info.js index 5611fc35..da3c58df 100644 --- a/static/js/pandora/info.js +++ b/static/js/pandora/info.js @@ -9,7 +9,6 @@ pandora.ui.info = function() { .css({overflowX: 'hidden', overflowY: 'auto'}) .bindEvent({ toggle: function(data) { - Ox.Log('', 'INFO TOGGLE') pandora.UI.set({showInfo: !data.collapsed}); }, pandora_find: function() { @@ -46,7 +45,6 @@ pandora.ui.info = function() { function resizeInfo() { var height = pandora.getInfoHeight(true); - Ox.Log('', 'RESIZE INFO', ui.showInfo, height) pandora.$ui.leftPanel.size(2, height); pandora.resizeFolders(); !ui.showInfo && pandora.$ui.leftPanel.css({bottom: -height + 'px'}); diff --git a/static/js/pandora/listDialog.js b/static/js/pandora/listDialog.js index 769da656..8436bcc4 100644 --- a/static/js/pandora/listDialog.js +++ b/static/js/pandora/listDialog.js @@ -466,7 +466,15 @@ pandora.ui.listIconPanel = function(listData) { id: listData.id, posterFrames: posterFrames }, function() { - $icon.attr({src: '/list/' + listData.id + '/icon256.jpg?' + Ox.uid()}); + $icon.attr({ + src: '/list/' + listData.id + '/icon256.jpg?' + Ox.uid() + }); + pandora.$ui.folderList[listData.folder].$element + .find('img[src*="/' + listData.id + '/"]') + .attr({ + src: '/list/' + listData.id + '/icon16.jpg?' + Ox.uid() + }); + pandora.$ui.info.updateListInfo(); }); $preview.options({position: position}); }