Skip to content

Commit 9f1b09b

Browse files
committed
Return request object.
1 parent 83cf4b3 commit 9f1b09b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Resources/public/js/select2entity.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
cacheTimeout = $s2.data('ajax--cacheTimeout');
4141
// no cache entry for 'term' or the cache has timed out?
4242
if (typeof cache[key] == 'undefined' || (cacheTimeout && Date.now() >= cache[key].time)) {
43-
$.ajax(params).fail(failure).done(function (data) {
43+
return $.ajax(params).fail(failure).done(function (data) {
4444
cache[key] = {
4545
data: data,
4646
time: cacheTimeout ? Date.now() + cacheTimeout : null

0 commit comments

Comments
 (0)