on find change, only replace right panel if we're not dealing with a context change, after item edit

This commit is contained in:
rolux 2013-02-11 16:45:47 +05:30
parent 5351cf498d
commit ff08c93714

View file

@ -57,9 +57,13 @@ pandora.ui.mainPanel = function() {
pandora.$ui.filters[i].reloadList(); pandora.$ui.filters[i].reloadList();
} }
}); });
} else {
if (pandora.stayInItemView) {
pandora.stayInItemView = false;
} else { } else {
that.replaceElement(1, pandora.$ui.rightPanel = pandora.ui.rightPanel()); that.replaceElement(1, pandora.$ui.rightPanel = pandora.ui.rightPanel());
} }
}
}, },
pandora_item: function(data) { pandora_item: function(data) {
if (!data.value || !data.previousValue) { if (!data.value || !data.previousValue) {