mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-22 04:45:12 +00:00
Allow callback function to be set as lookup in options. Fixes #227
This commit is contained in:
parent
05a337cba9
commit
805b45ccb7
@ -541,8 +541,8 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if ($.isFunction(that.lookup)){
|
||||
that.lookup(q, function (data) {
|
||||
if ($.isFunction(options.lookup)){
|
||||
options.lookup(q, function (data) {
|
||||
that.suggestions = data.suggestions;
|
||||
that.suggest();
|
||||
options.onSearchComplete.call(that.element, q, data.suggestions);
|
||||
|
Loading…
Reference in New Issue
Block a user