fix #2186 (info panel is empty for edits)

This commit is contained in:
rolux 2014-02-05 07:00:08 +00:00
parent e3bf14dab8
commit 8c69862193

View file

@ -71,7 +71,7 @@ pandora.ui.info = function() {
var id = getId(), var id = getId(),
previousView = view; previousView = view;
view = getView(); view = getView();
if (view == 'list' || view == 'text') { if (view == 'list' || view == 'edit' || view == 'text') {
emptyInfo(); emptyInfo();
that.append(pandora.$ui.listInfo = pandora.ui.listInfo()); that.append(pandora.$ui.listInfo = pandora.ui.listInfo());
previousView == 'video' && resizeInfo(); previousView == 'video' && resizeInfo();
@ -151,7 +151,7 @@ pandora.ui.info = function() {
that.resizeInfo = function() { that.resizeInfo = function() {
var view = getView(); var view = getView();
if (view == 'list' || view == 'text') { if (view == 'list' || view == 'edit' || view == 'text') {
pandora.$ui.listInfo.resizeInfo(); pandora.$ui.listInfo.resizeInfo();
} else if (view == 'poster') { } else if (view == 'poster') {
pandora.$ui.posterInfo.resizeInfo(); pandora.$ui.posterInfo.resizeInfo();