mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2025-01-11 01:32:04 +00:00
Parameters were passed to method 'onSearchStart'
We need to add extra parameter to search criteria
This commit is contained in:
parent
0add15ec72
commit
91df66d4da
@ -89,7 +89,7 @@
|
|||||||
onSearchComplete: noop,
|
onSearchComplete: noop,
|
||||||
containerClass: 'autocomplete-suggestions',
|
containerClass: 'autocomplete-suggestions',
|
||||||
tabDisabled: false,
|
tabDisabled: false,
|
||||||
dataType : 'text',
|
dataType: 'text',
|
||||||
lookupFilter: function (suggestion, originalQuery, queryLowerCase) {
|
lookupFilter: function (suggestion, originalQuery, queryLowerCase) {
|
||||||
return suggestion.value.toLowerCase().indexOf(queryLowerCase) !== -1;
|
return suggestion.value.toLowerCase().indexOf(queryLowerCase) !== -1;
|
||||||
},
|
},
|
||||||
@ -401,8 +401,8 @@
|
|||||||
that.suggestions = response.suggestions;
|
that.suggestions = response.suggestions;
|
||||||
that.suggest();
|
that.suggest();
|
||||||
} else if (!that.isBadQuery(q)) {
|
} else if (!that.isBadQuery(q)) {
|
||||||
options.onSearchStart.call(that.element, q);
|
|
||||||
options.params[options.paramName] = q;
|
options.params[options.paramName] = q;
|
||||||
|
options.onSearchStart.call(that.element, options.params);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: options.serviceUrl,
|
url: options.serviceUrl,
|
||||||
data: options.params,
|
data: options.params,
|
||||||
|
Loading…
Reference in New Issue
Block a user