forked from 0x2620/pandora
dont fail with advanced find(pandora.user.ui._findState.key == advanced), fixes #1693
This commit is contained in:
parent
de4177dac6
commit
8466c054f2
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ pandora.ui.findElement = function() {
|
||||||
? pandora.user.ui._findState.key
|
? pandora.user.ui._findState.key
|
||||||
: that.value()[pandora.user.ui._list ? 1 : 0],
|
: that.value()[pandora.user.ui._list ? 1 : 0],
|
||||||
findKey = Ox.getObjectById(pandora.site.findKeys, key);
|
findKey = Ox.getObjectById(pandora.site.findKeys, key);
|
||||||
return findKey.autocomplete ? function(value, callback) {
|
return findKey && findKey.autocomplete ? function(value, callback) {
|
||||||
value === '' && Ox.Log('', 'Warning: autocomplete function should never be called with empty value');
|
value === '' && Ox.Log('', 'Warning: autocomplete function should never be called with empty value');
|
||||||
pandora.api.autocomplete({
|
pandora.api.autocomplete({
|
||||||
key: key,
|
key: key,
|
||||||
|
|
Loading…
Reference in a new issue