diff options
author | Simon Rettberg | 2019-05-29 13:30:54 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-06-25 10:17:22 +0200 |
commit | e6234d0b610586630d279c1c94935336cfff5118 (patch) | |
tree | c1c99f19f8fa3cf12d55a7e890ca61c99a155ff4 /script | |
parent | [news] Modularize; add 'login-news' category (diff) | |
download | slx-admin-e6234d0b610586630d279c1c94935336cfff5118.tar.gz slx-admin-e6234d0b610586630d279c1c94935336cfff5118.tar.xz slx-admin-e6234d0b610586630d279c1c94935336cfff5118.zip |
[exams/bootstrap_datepicker] Always load slx-admin language plugin
Fixes #3567
Diffstat (limited to 'script')
-rw-r--r-- | script/slx-fixes.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/script/slx-fixes.js b/script/slx-fixes.js index 06453ca0..be35f56b 100644 --- a/script/slx-fixes.js +++ b/script/slx-fixes.js @@ -106,3 +106,13 @@ $(document).ready(function() { } slxCheckCallbacks(); }); + +// Caching script fetcher (https://api.jquery.com/jQuery.getScript/); use exactly like $.getScript +jQuery.cachedScript = function(url, options) { + options = $.extend( options || {}, { + dataType: "script", + cache: true, + url: url + }); + return jQuery.ajax( options ); +}; |