mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-22 12:55:12 +00:00
allows optional paramFunc
This commit is contained in:
parent
56d902b6b1
commit
193f1cee63
3
dist/jquery.autocomplete.js
vendored
3
dist/jquery.autocomplete.js
vendored
@ -531,6 +531,7 @@
|
||||
that = this,
|
||||
options = that.options,
|
||||
serviceUrl = options.serviceUrl,
|
||||
paramFunc = options.paramFunc || $.param,
|
||||
params,
|
||||
cacheKey,
|
||||
ajaxSettings;
|
||||
@ -557,7 +558,7 @@
|
||||
if ($.isFunction(serviceUrl)) {
|
||||
serviceUrl = serviceUrl.call(that.element, q);
|
||||
}
|
||||
cacheKey = serviceUrl + '?' + $.param(params || {});
|
||||
cacheKey = serviceUrl + '?' + paramFunc(params || {});
|
||||
response = that.cachedResponse[cacheKey];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user