We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83cf4b3 commit 9f1b09bCopy full SHA for 9f1b09b
Resources/public/js/select2entity.js
@@ -40,7 +40,7 @@
40
cacheTimeout = $s2.data('ajax--cacheTimeout');
41
// no cache entry for 'term' or the cache has timed out?
42
if (typeof cache[key] == 'undefined' || (cacheTimeout && Date.now() >= cache[key].time)) {
43
- $.ajax(params).fail(failure).done(function (data) {
+ return $.ajax(params).fail(failure).done(function (data) {
44
cache[key] = {
45
data: data,
46
time: cacheTimeout ? Date.now() + cacheTimeout : null
0 commit comments