2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-09-19 08:49:01 +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",
"version": "1.4.9",
"version": "1.4.10",
"homepage": "https://github.com/devbridge/jQuery-Autocomplete",
"authors": [
"Tomas Kirda"

View File

@ -6,7 +6,7 @@
"ajax",
"autocomplete"
],
"version": "1.4.9",
"version": "1.4.10",
"author": {
"name": "Tomas Kirda",
"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
*
* Ajax Autocomplete for jQuery is freely distributable under the terms of an MIT-style license.
@ -36,7 +36,6 @@
div.className = containerClass;
div.style.position = 'absolute';
div.style.display = 'none';
div.setAttribute('unselectable','on');
return div;
}
};
@ -228,12 +227,19 @@
},
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
// be canceled, otherwise close suggestions
that.blurTimeoutId = setTimeout(function () {
that.hide();
if (that.selection && that.currentValue !== query) {
(options.onInvalidateSelection || $.noop).call(that.element);
}
}, 200);
},

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "devbridge-autocomplete",
"version": "1.4.9",
"version": "1.4.10",
"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)",