From 6054cda473945dbe583621df3ab6ae5a3b35ac37 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Sun, 30 Mar 2014 13:02:41 +0200 Subject: Create a customizable timeslider toolbar --- src/node/hooks/express/specialpages.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/node/hooks/express') diff --git a/src/node/hooks/express/specialpages.js b/src/node/hooks/express/specialpages.js index 8609d657..063328fb 100644 --- a/src/node/hooks/express/specialpages.js +++ b/src/node/hooks/express/specialpages.js @@ -46,7 +46,14 @@ exports.expressCreateServer = function (hook_name, args, cb) { //serve timeslider.html under /p/$padname/timeslider args.app.get('/p/:pad/timeslider', function(req, res, next) { - res.send(eejs.require("ep_etherpad-lite/templates/timeslider.html", {req: req})); + hooks.callAll("padInitToolbar", { + toolbar: toolbar + }); + + res.send(eejs.require("ep_etherpad-lite/templates/timeslider.html", { + req: req, + toolbar: toolbar + })); }); //serve favicon.ico from all path levels except as a pad name -- cgit v1.2.3