forked from 0x2620/pandora
when updating a list icon, update it in folder and info too
This commit is contained in:
parent
3152ea2e20
commit
91f2c6fe35
2 changed files with 9 additions and 3 deletions
|
@ -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'});
|
||||
|
|
|
@ -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});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue