From 4eb710fd0103c47b083cb78a7e764e1635a4e052 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 2 Nov 2011 02:45:03 +0000 Subject: [PATCH] fix a bug where submitting find in item view would not lead back to list view --- static/js/pandora/mainPanel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/pandora/mainPanel.js b/static/js/pandora/mainPanel.js index 66220aa23..db3f26d35 100644 --- a/static/js/pandora/mainPanel.js +++ b/static/js/pandora/mainPanel.js @@ -20,7 +20,7 @@ pandora.ui.mainPanel = function() { .bindEvent({ pandora_find: function() { var previousUI = pandora.UI.getPrevious(); - if (!pandora.user.ui.item && pandora.user.ui._list == previousUI._list) { + if (!previousUI.item && pandora.user.ui._list == previousUI._list) { if (['map', 'calendar'].indexOf(pandora.user.ui.listView) > -1) { pandora.$ui.contentPanel.replaceElement(1, pandora.ui.navigationView(pandora.user.ui.listView)