use SplitPanel.toggleElement
This commit is contained in:
parent
9df0ecca44
commit
3ab0e4ba1e
2 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue