in info view, also update image list when it's hidden

This commit is contained in:
rlx 2011-08-07 22:21:38 +00:00
parent 686d5a1631
commit 8263c0e996

View file

@ -455,7 +455,6 @@ pandora.ui.infoView = function(data) {
.appendTo($info); .appendTo($info);
}); });
return ;
} }
function toggleIconSize() { function toggleIconSize() {
@ -498,7 +497,7 @@ pandora.ui.infoView = function(data) {
iconRatio = pandora.user.ui.icons == 'posters' iconRatio = pandora.user.ui.icons == 'posters'
? data.poster.width / data.poster.height : 1, ? data.poster.width / data.poster.height : 1,
toggleIconSize(); toggleIconSize();
edit && $list.replaceWith($list = renderList()); pandora.user.level == 'admin' && $list.replaceWith($list = renderList());
}; };
that.resize = function() { that.resize = function() {