From 7e3e0a5f6de08d47628d6877f2c3e73c5a8b56b2 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 25 Oct 2011 16:15:37 +0200 Subject: [PATCH] pandora..findListSelect can be undefined --- static/js/pandora/findElement.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/pandora/findElement.js b/static/js/pandora/findElement.js index d5f1ab794..197133f8c 100644 --- a/static/js/pandora/findElement.js +++ b/static/js/pandora/findElement.js @@ -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: '&' },