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