From ff08c9371487de5b7ccb03ef93ab69609eb53c6f Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 11 Feb 2013 16:45:47 +0530 Subject: [PATCH] on find change, only replace right panel if we're not dealing with a context change, after item edit --- static/js/pandora/mainPanel.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/static/js/pandora/mainPanel.js b/static/js/pandora/mainPanel.js index 67e0f1a1..1f9e5f90 100644 --- a/static/js/pandora/mainPanel.js +++ b/static/js/pandora/mainPanel.js @@ -58,7 +58,11 @@ pandora.ui.mainPanel = function() { } }); } else { - that.replaceElement(1, pandora.$ui.rightPanel = pandora.ui.rightPanel()); + if (pandora.stayInItemView) { + pandora.stayInItemView = false; + } else { + that.replaceElement(1, pandora.$ui.rightPanel = pandora.ui.rightPanel()); + } } }, pandora_item: function(data) {