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;