From 3ab0e4ba1e7306d11851015ed1fe516c162ae0a0 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 22 Sep 2014 16:55:12 +0200 Subject: [PATCH] use SplitPanel.toggleElement --- static/js/mainPanel.js | 2 +- static/js/utils.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/mainPanel.js b/static/js/mainPanel.js index 8fe447c37..952fe8f1a 100644 --- a/static/js/mainPanel.js +++ b/static/js/mainPanel.js @@ -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) { diff --git a/static/js/utils.js b/static/js/utils.js index 581ed23bc..8e38a9129 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -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();