mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04:00
Merge branch 'develop' of github.com:ether/etherpad-lite into develop
This commit is contained in:
commit
6fad0210f8
2 changed files with 2645 additions and 3616 deletions
6249
src/static/js/jquery.js
vendored
6249
src/static/js/jquery.js
vendored
File diff suppressed because it is too large
Load diff
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue