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