forked from 0x2620/pandora
some undefined bugs
This commit is contained in:
parent
f4e65ae7b8
commit
47dfb7f5a9
2 changed files with 2 additions and 2 deletions
|
@ -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'
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue