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'})
|
.css({overflowX: 'hidden', overflowY: 'auto'})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
toggle: function(data) {
|
toggle: function(data) {
|
||||||
Ox.Log('', 'INFO TOGGLE')
|
|
||||||
pandora.UI.set({showInfo: !data.collapsed});
|
pandora.UI.set({showInfo: !data.collapsed});
|
||||||
},
|
},
|
||||||
pandora_find: function() {
|
pandora_find: function() {
|
||||||
|
@ -46,7 +45,6 @@ pandora.ui.info = function() {
|
||||||
|
|
||||||
function resizeInfo() {
|
function resizeInfo() {
|
||||||
var height = pandora.getInfoHeight(true);
|
var height = pandora.getInfoHeight(true);
|
||||||
Ox.Log('', 'RESIZE INFO', ui.showInfo, height)
|
|
||||||
pandora.$ui.leftPanel.size(2, height);
|
pandora.$ui.leftPanel.size(2, height);
|
||||||
pandora.resizeFolders();
|
pandora.resizeFolders();
|
||||||
!ui.showInfo && pandora.$ui.leftPanel.css({bottom: -height + 'px'});
|
!ui.showInfo && pandora.$ui.leftPanel.css({bottom: -height + 'px'});
|
||||||
|
|
|
@ -466,7 +466,15 @@ pandora.ui.listIconPanel = function(listData) {
|
||||||
id: listData.id,
|
id: listData.id,
|
||||||
posterFrames: posterFrames
|
posterFrames: posterFrames
|
||||||
}, function() {
|
}, 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});
|
$preview.options({position: position});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue