Skip to content

Commit

Permalink
Merge pull request #148 from tetranz/return-request
Browse files Browse the repository at this point in the history
Return request object.
  • Loading branch information
tetranz authored Jul 14, 2019
2 parents 83cf4b3 + 9f1b09b commit 1d4b184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/public/js/select2entity.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
cacheTimeout = $s2.data('ajax--cacheTimeout');
// no cache entry for 'term' or the cache has timed out?
if (typeof cache[key] == 'undefined' || (cacheTimeout && Date.now() >= cache[key].time)) {
$.ajax(params).fail(failure).done(function (data) {
return $.ajax(params).fail(failure).done(function (data) {
cache[key] = {
data: data,
time: cacheTimeout ? Date.now() + cacheTimeout : null
Expand Down

0 comments on commit 1d4b184

Please sign in to comment.