Skip to content

Commit 2b7e259

Browse files
author
Tomas Kirda
committed
Rev for 1.2.21 release
1 parent 9460079 commit 2b7e259

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "devbridge-autocomplete",
3-
"version": "1.2.20",
3+
"version": "1.2.21",
44
"homepage": "https://github.com/devbridge/jQuery-Autocomplete",
55
"authors": [
66
"Tomas Kirda"

devbridge-autocomplete.jquery.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"ajax",
77
"autocomplete"
88
],
9-
"version": "1.2.20",
9+
"version": "1.2.21",
1010
"author": {
1111
"name": "Tomas Kirda",
1212
"url": "https://github.com/tkirda"

dist/jquery.autocomplete.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Ajax Autocomplete for jQuery, version 1.2.20
2+
* Ajax Autocomplete for jQuery, version 1.2.21
33
* (c) 2015 Tomas Kirda
44
*
55
* Ajax Autocomplete for jQuery is freely distributable under the terms of an MIT-style license.
@@ -209,7 +209,7 @@
209209
onFocus: function () {
210210
var that = this;
211211
that.fixPosition();
212-
if (that.options.minChars <= that.el.val().length) {
212+
if (that.options.minChars === 0 && that.el.val().length === 0) {
213213
that.onValueChange();
214214
}
215215
},
@@ -580,7 +580,7 @@
580580
that.currentRequest = $.ajax(ajaxSettings).done(function (data) {
581581
var result;
582582
that.currentRequest = null;
583-
result = options.transformResult(data);
583+
result = options.transformResult(data, q);
584584
that.processResponse(result, q, cacheKey);
585585
options.onSearchComplete.call(that.element, q, result.suggestions);
586586
}).fail(function (jqXHR, textStatus, errorThrown) {

dist/jquery.autocomplete.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "devbridge-autocomplete",
3-
"version": "1.2.20",
3+
"version": "1.2.21",
44
"description": "Autocomplete provides suggestions while you type into the text field.",
55
"homepage": "https://github.com/devbridge/jQuery-Autocomplete",
66
"author": "Tomas Kirda (https://twitter.com/tkirda)",

0 commit comments

Comments
 (0)