pandora..findListSelect can be undefined

This commit is contained in:
j 2011-10-25 16:15:37 +02:00
parent 389619feaf
commit 7e3e0a5f6d

View file

@ -124,7 +124,8 @@ pandora.ui.findElement = function() {
pandora.api.autocomplete({
key: key,
query: {
conditions: pandora.$ui.findListSelect.value() == 'list'
conditions: pandora.$ui.findListSelect
&& pandora.$ui.findListSelect.value() == 'list'
? [{key: 'list', value: pandora.user.ui._list, operator: '=='}] : [],
operator: '&'
},