mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-28 11:26:16 -04:00
Hook modules can be in either CommonJS or AMD format, have to be AMD for client side
This commit is contained in:
parent
0e5cd65d8d
commit
b86aa5d858
6 changed files with 94 additions and 46 deletions
|
@ -26,9 +26,11 @@ exports.update = function (cb) {
|
|||
jQuery.getJSON(exports.baseURL + 'pluginfw/plugin-definitions.json', function(data) {
|
||||
exports.plugins = data.plugins;
|
||||
exports.parts = data.parts;
|
||||
exports.hooks = pluginUtils.extractHooks(exports.parts, "client_hooks");
|
||||
exports.loaded = true;
|
||||
callback();
|
||||
pluginUtils.extractHooks(exports.parts, "client_hooks", undefined, function (err, hooks) {
|
||||
exports.hooks = hooks;
|
||||
exports.loaded = true;
|
||||
callback();
|
||||
});
|
||||
}).error(function(xhr, s, err){
|
||||
console.error("Failed to load plugin-definitions: " + err);
|
||||
callback();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue