stalecode: jQuery 3 (#3903)

This commit is contained in:
John McLear 2020-06-07 12:01:14 +01:00 committed by GitHub
parent 7fa3cb35aa
commit 128f3e15eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2645 additions and 3616 deletions

6249
src/static/js/jquery.js vendored

File diff suppressed because it is too large Load Diff

View File

@ -22,17 +22,17 @@ exports.update = function (cb) {
// of execution on Firefox. This schedules the response in the run-loop,
// which appears to fix the issue.
var callback = function () {setTimeout(cb, 0);};
jQuery.getJSON(exports.baseURL + 'pluginfw/plugin-definitions.json', function(data) {
$.ajaxSetup({ cache: false });
jQuery.getJSON(exports.baseURL + 'pluginfw/plugin-definitions.json').done(function(data) {
exports.plugins = data.plugins;
exports.parts = data.parts;
exports.hooks = pluginUtils.extractHooks(exports.parts, "client_hooks");
exports.loaded = true;
callback();
}).error(function(xhr, s, err){
console.error("Failed to load plugin-definitions: " + err);
callback();
});
}).fail(function(e){
console.error("Failed to load plugin-definitions: " + err);
callback();
});
};
function adoptPlugins(plugins) {