2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-11-09 23:01:00 +00:00

Rev for 1.4.10 release

This commit is contained in:
Tomas Kirda 2019-02-12 13:42:56 -06:00
parent e5df0659ea
commit 43b2953ab7
5 changed files with 14 additions and 8 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "devbridge-autocomplete", "name": "devbridge-autocomplete",
"version": "1.4.9", "version": "1.4.10",
"homepage": "https://github.com/devbridge/jQuery-Autocomplete", "homepage": "https://github.com/devbridge/jQuery-Autocomplete",
"authors": [ "authors": [
"Tomas Kirda" "Tomas Kirda"

View File

@ -6,7 +6,7 @@
"ajax", "ajax",
"autocomplete" "autocomplete"
], ],
"version": "1.4.9", "version": "1.4.10",
"author": { "author": {
"name": "Tomas Kirda", "name": "Tomas Kirda",
"url": "https://github.com/tkirda" "url": "https://github.com/tkirda"

View File

@ -1,5 +1,5 @@
/** /**
* Ajax Autocomplete for jQuery, version 1.4.9 * Ajax Autocomplete for jQuery, version 1.4.10
* (c) 2017 Tomas Kirda * (c) 2017 Tomas Kirda
* *
* Ajax Autocomplete for jQuery is freely distributable under the terms of an MIT-style license. * Ajax Autocomplete for jQuery is freely distributable under the terms of an MIT-style license.
@ -36,7 +36,6 @@
div.className = containerClass; div.className = containerClass;
div.style.position = 'absolute'; div.style.position = 'absolute';
div.style.display = 'none'; div.style.display = 'none';
div.setAttribute('unselectable','on');
return div; return div;
} }
}; };
@ -228,12 +227,19 @@
}, },
onBlur: function () { onBlur: function () {
var that = this; var that = this,
options = that.options,
value = that.el.val(),
query = that.getQuery(value);
// If user clicked on a suggestion, hide() will // If user clicked on a suggestion, hide() will
// be canceled, otherwise close suggestions // be canceled, otherwise close suggestions
that.blurTimeoutId = setTimeout(function () { that.blurTimeoutId = setTimeout(function () {
that.hide(); that.hide();
if (that.selection && that.currentValue !== query) {
(options.onInvalidateSelection || $.noop).call(that.element);
}
}, 200); }, 200);
}, },

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{ {
"name": "devbridge-autocomplete", "name": "devbridge-autocomplete",
"version": "1.4.9", "version": "1.4.10",
"description": "Autocomplete provides suggestions while you type into the text field.", "description": "Autocomplete provides suggestions while you type into the text field.",
"homepage": "https://github.com/devbridge/jQuery-Autocomplete", "homepage": "https://github.com/devbridge/jQuery-Autocomplete",
"author": "Tomas Kirda (https://twitter.com/tkirda)", "author": "Tomas Kirda (https://twitter.com/tkirda)",