mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-12-22 10:58:55 +00:00
Rev for 1.2.19 release
This commit is contained in:
parent
d7b487cc73
commit
afdece2298
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "devbridge-autocomplete",
|
||||
"version": "1.2.18",
|
||||
"version": "1.2.19",
|
||||
"homepage": "https://github.com/devbridge/jQuery-Autocomplete",
|
||||
"authors": [
|
||||
"Tomas Kirda"
|
||||
@ -16,7 +16,9 @@
|
||||
"**/.*",
|
||||
"node_modules",
|
||||
"bower_components",
|
||||
"spec"
|
||||
"spec",
|
||||
"scripts",
|
||||
"content"
|
||||
],
|
||||
"dependencies": {
|
||||
"jquery": ">=1.7"
|
||||
|
@ -6,7 +6,7 @@
|
||||
"ajax",
|
||||
"autocomplete"
|
||||
],
|
||||
"version": "1.2.18",
|
||||
"version": "1.2.19",
|
||||
"author": {
|
||||
"name": "Tomas Kirda",
|
||||
"url": "https://github.com/tkirda"
|
||||
|
18
dist/jquery.autocomplete.js
vendored
18
dist/jquery.autocomplete.js
vendored
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Ajax Autocomplete for jQuery, version 1.2.18
|
||||
* Ajax Autocomplete for jQuery, version 1.2.19
|
||||
* (c) 2015 Tomas Kirda
|
||||
*
|
||||
* Ajax Autocomplete for jQuery is freely distributable under the terms of an MIT-style license.
|
||||
@ -217,6 +217,14 @@
|
||||
onBlur: function () {
|
||||
this.enableKillerFn();
|
||||
},
|
||||
|
||||
abortAjax: function () {
|
||||
var that = this;
|
||||
if (that.currentRequest) {
|
||||
that.currentRequest.abort();
|
||||
that.currentRequest = null;
|
||||
}
|
||||
},
|
||||
|
||||
setOptions: function (suppliedOptions) {
|
||||
var that = this,
|
||||
@ -256,9 +264,7 @@
|
||||
var that = this;
|
||||
that.disabled = true;
|
||||
clearInterval(that.onChangeInterval);
|
||||
if (that.currentRequest) {
|
||||
that.currentRequest.abort();
|
||||
}
|
||||
that.abortAjax();
|
||||
},
|
||||
|
||||
enable: function () {
|
||||
@ -573,9 +579,7 @@
|
||||
that.suggest();
|
||||
options.onSearchComplete.call(that.element, q, response.suggestions);
|
||||
} else if (!that.isBadQuery(q)) {
|
||||
if (that.currentRequest) {
|
||||
that.currentRequest.abort();
|
||||
}
|
||||
that.abortAjax();
|
||||
|
||||
ajaxSettings = {
|
||||
url: serviceUrl,
|
||||
|
4
dist/jquery.autocomplete.min.js
vendored
4
dist/jquery.autocomplete.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "devbridge-autocomplete",
|
||||
"version": "1.2.18",
|
||||
"version": "1.2.19",
|
||||
"description": "Autocomplete provides suggestions while you type into the text field.",
|
||||
"homepage": "https://github.com/devbridge/jQuery-Autocomplete",
|
||||
"author": "Tomas Kirda (https://twitter.com/tkirda)",
|
||||
|
Loading…
Reference in New Issue
Block a user