mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-09 23:01:00 +00:00
Don't perform lookup if onSearchStart returns false. Fixes #60.
This commit is contained in:
parent
41543d98a4
commit
941c8ee4e3
@ -390,7 +390,9 @@
|
||||
that.suggest();
|
||||
} else if (!that.isBadQuery(q)) {
|
||||
options.params[options.paramName] = q;
|
||||
options.onSearchStart.call(that.element, options.params);
|
||||
if (options.onSearchStart.call(that.element, options.params) === false) {
|
||||
return;
|
||||
}
|
||||
$.ajax({
|
||||
url: options.serviceUrl,
|
||||
data: options.params,
|
||||
|
Loading…
Reference in New Issue
Block a user