fix a bug where submitting find in item view would not lead back to list view

This commit is contained in:
rolux 2011-11-02 02:45:03 +00:00
parent ba10d27359
commit 4eb710fd01

View file

@ -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)