toggleElement

This commit is contained in:
j 2014-09-23 23:56:11 +02:00
parent a266c518b7
commit 32a558c48d
2 changed files with 3 additions and 3 deletions

View file

@ -49,10 +49,10 @@ pandora.ui.contentPanel = function() {
!pandora.user.ui.item && that.replaceElement(1, pandora.$ui.list = pandora.ui.list()); !pandora.user.ui.item && that.replaceElement(1, pandora.$ui.list = pandora.ui.list());
}, },
pandora_showbrowser: function(data) { pandora_showbrowser: function(data) {
data.value == that.options('elements')[0].collapsed && that.toggle(0); data.value == that.options('elements')[0].collapsed && that.toggleElement(0);
}, },
pandora_showfilters: function(data) { pandora_showfilters: function(data) {
data.value == that.options('elements')[0].collapsed && that.toggle(0); data.value == that.options('elements')[0].collapsed && that.toggleElement(0);
} }
}); });
return that; return that;

View file

@ -381,7 +381,7 @@ pandora.ui.documentsPanel = function(options) {
$listPanel.replaceElement(1, $list = renderList()); $listPanel.replaceElement(1, $list = renderList());
}, },
pandora_showdocument: function(data) { pandora_showdocument: function(data) {
isItemView && that.toggle(1); isItemView && that.toggleElement(1);
} }
}); });