use SplitPanel.toggleElement

This commit is contained in:
j 2014-09-22 16:55:12 +02:00
parent 9df0ecca44
commit 3ab0e4ba1e
2 changed files with 2 additions and 2 deletions

View file

@ -81,7 +81,7 @@ pandora.ui.mainPanel = function() {
}
},
pandora_showsidebar: function(data) {
data.value == that.options('elements')[0].collapsed && that.toggle(0);
data.value == that.options('elements')[0].collapsed && that.toggleElement(0);
},
pandora_text: function(data) {
if (data.value != data.previousValue) {

View file

@ -582,7 +582,7 @@ pandora.enableDragAndDrop = function($list, canMove, section) {
if (event.clientX < 16 && event.clientY >= 44
&& event.clientY < window.innerHeight - 16
) {
pandora.$ui.mainPanel.toggle(0);
pandora.$ui.mainPanel.toggleElement(0);
}
} else {
$parent = $(event.target).parent();