some undefined bugs

This commit is contained in:
j 2011-10-25 15:58:49 +02:00
parent f4e65ae7b8
commit 47dfb7f5a9
2 changed files with 2 additions and 2 deletions

View file

@ -652,7 +652,7 @@ pandora.ui.infoView = function(data) {
max: 1, max: 1,
min: 1, min: 1,
orientation: 'both', orientation: 'both',
selected: [selectedImage['index']], selected: selectedImage?[selectedImage['index']]:[],
size: 128, size: 128,
sort: [{key: 'index', operator: '+'}], sort: [{key: 'index', operator: '+'}],
unique: 'index' unique: 'index'

View file

@ -20,7 +20,7 @@ pandora.ui.mainPanel = function() {
.bindEvent({ .bindEvent({
pandora_find: function() { pandora_find: function() {
var previousUI = pandora.UI.getPrevious(); var previousUI = pandora.UI.getPrevious();
if (pandora.user.ui._list == previousUI._list) { if (pandora.user.ui._list == previousUI._list && pandora.$ui.list) {
if (['map', 'calendar'].indexOf(pandora.user.ui.listView) > -1) { if (['map', 'calendar'].indexOf(pandora.user.ui.listView) > -1) {
pandora.$ui.contentPanel.replaceElement(1, pandora.$ui.contentPanel.replaceElement(1,
pandora.ui.navigationView(pandora.user.ui.listView) pandora.ui.navigationView(pandora.user.ui.listView)