2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2025-03-21 08:52:21 +00:00

Rev for 1.2.21 release

This commit is contained in:
Tomas Kirda 2015-06-04 12:59:30 -05:00
parent 94600795e7
commit 2b7e259b74
5 changed files with 8 additions and 8 deletions

View File

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

View File

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

View File

@ -1,5 +1,5 @@
/**
* Ajax Autocomplete for jQuery, version 1.2.20
* Ajax Autocomplete for jQuery, version 1.2.21
* (c) 2015 Tomas Kirda
*
* Ajax Autocomplete for jQuery is freely distributable under the terms of an MIT-style license.
@ -209,7 +209,7 @@
onFocus: function () {
var that = this;
that.fixPosition();
if (that.options.minChars <= that.el.val().length) {
if (that.options.minChars === 0 && that.el.val().length === 0) {
that.onValueChange();
}
},
@ -580,7 +580,7 @@
that.currentRequest = $.ajax(ajaxSettings).done(function (data) {
var result;
that.currentRequest = null;
result = options.transformResult(data);
result = options.transformResult(data, q);
that.processResponse(result, q, cacheKey);
options.onSearchComplete.call(that.element, q, result.suggestions);
}).fail(function (jqXHR, textStatus, errorThrown) {

File diff suppressed because one or more lines are too long

View File

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