Skip to content

Commit

Permalink
Rev for 1.2.7 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas Kirda committed Apr 24, 2013
1 parent 6e055c1 commit 997a4b9
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 20 deletions.
2 changes: 1 addition & 1 deletion devbridge-autocomplete.jquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"ajax",
"autocomplete"
],
"version": "1.2.6",
"version": "1.2.7",
"author": {
"name": "Tomas Kirda",
"url": "https://github.com/tkirda"
Expand Down
16 changes: 11 additions & 5 deletions dist/jquery.autocomplete.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Ajax Autocomplete for jQuery, version 1.2.6
* Ajax Autocomplete for jQuery, version 1.2.7
* (c) 2013 Tomas Kirda
*
* Ajax Autocomplete for jQuery is freely distributable under the terms of an MIT-style license.
Expand Down Expand Up @@ -381,7 +381,8 @@
getSuggestions: function (q) {
var response,
that = this,
options = that.options;
options = that.options,
serviceUrl = options.serviceUrl;

response = that.isLocal ? that.getSuggestionsLocal(q) : that.cachedResponse[q];

Expand All @@ -390,10 +391,15 @@
that.suggest();
} else if (!that.isBadQuery(q)) {
options.params[options.paramName] = q;
options.onSearchStart.call(that.element, options.params);
if (options.onSearchStart.call(that.element, options.params) === false) {
return;
}
if ($.isFunction(options.serviceUrl)) {
serviceUrl = options.serviceUrl.call(that.element, q);
}
$.ajax({
url: options.serviceUrl,
data: options.params,
url: serviceUrl,
data: options.ignoreParams ? null : options.params,
type: options.type,
dataType: options.dataType
}).done(function (data) {
Expand Down
26 changes: 13 additions & 13 deletions dist/jquery.autocomplete.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/jquery.autocomplete.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Ajax Autocomplete for jQuery, version 1.2.6
* Ajax Autocomplete for jQuery, version 1.2.7
* (c) 2013 Tomas Kirda
*
* Ajax Autocomplete for jQuery is freely distributable under the terms of an MIT-style license.
Expand Down

0 comments on commit 997a4b9

Please sign in to comment.