From 8e4c16443e19c4c50bf9d280a1ef78e94918d74f Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 21 Feb 2013 17:40:35 +0530 Subject: [PATCH] handle pandora_text event --- static/js/pandora/mainPanel.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/static/js/pandora/mainPanel.js b/static/js/pandora/mainPanel.js index 5fbb585f6..9d3a9a819 100644 --- a/static/js/pandora/mainPanel.js +++ b/static/js/pandora/mainPanel.js @@ -65,19 +65,22 @@ pandora.ui.mainPanel = function() { } } }, + pandora_item: function(data) { + if (!data.value || !data.previousValue) { + that.replaceElement(1, pandora.$ui.rightPanel = pandora.ui.rightPanel()); + } + }, pandora_section: function(data) { if (data.value != data.previousValue) { that.replaceElement(0, pandora.$ui.leftPanel = pandora.ui.leftPanel()); that.replaceElement(1, pandora.$ui.rightPanel = pandora.ui.rightPanel()); } }, - pandora_item: function(data) { - if (!data.value || !data.previousValue) { - that.replaceElement(1, pandora.$ui.rightPanel = pandora.ui.rightPanel()); - } - }, pandora_showsidebar: function(data) { data.value == that.options('elements')[0].collapsed && that.toggle(0); + }, + pandora_text: function(data) { + that.replaceElement(1, pandora.$ui.rightPanel = pandora.ui.rightPanel()); } }); return that;