diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-05-04 00:12:46 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-05-04 00:12:46 +0200 |
commit | 4b0a82cc2f4597a11b9275cf156ae9cceffaf44f (patch) | |
tree | a384ea0b7a610387f9a9cb8b6de4de58e8dd76b0 /pkgs/webapps/etherpad-lite/modules/ep_immae_buttons/hooks.js | |
parent | e9c91c19475ed679676829bfd716e41009b560c8 (diff) | |
download | Nix-4b0a82cc2f4597a11b9275cf156ae9cceffaf44f.tar.gz Nix-4b0a82cc2f4597a11b9275cf156ae9cceffaf44f.tar.zst Nix-4b0a82cc2f4597a11b9275cf156ae9cceffaf44f.zip |
Fix some etherpad-lite modules and packaging
The upgrade to 1.8.3 broke many modules, which were patched to continue
working correctly.
This commit also reworks the module system, making it similar to
python’s withPackages.
Diffstat (limited to 'pkgs/webapps/etherpad-lite/modules/ep_immae_buttons/hooks.js')
-rw-r--r-- | pkgs/webapps/etherpad-lite/modules/ep_immae_buttons/hooks.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/webapps/etherpad-lite/modules/ep_immae_buttons/hooks.js b/pkgs/webapps/etherpad-lite/modules/ep_immae_buttons/hooks.js new file mode 100644 index 0000000..dcf7782 --- /dev/null +++ b/pkgs/webapps/etherpad-lite/modules/ep_immae_buttons/hooks.js | |||
@@ -0,0 +1,6 @@ | |||
1 | var eejs = require('ep_etherpad-lite/node/eejs/'); | ||
2 | |||
3 | exports.eejsBlock_editbarMenuLeft = function (hook_name, args, cb) { | ||
4 | args.content = args.content + eejs.require("ep_immae_buttons/templates/editbarButtons.ejs"); | ||
5 | return cb(); | ||
6 | } | ||