Skip to content

Commit 1d4b184

Browse files
authored
Merge pull request tetranz#148 from tetranz/return-request
Return request object.
2 parents 83cf4b3 + 9f1b09b commit 1d4b184

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)