summaryrefslogtreecommitdiff
path: root/src/node/hooks/express
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2014-03-30 13:02:41 +0200
committerMarcel Klehr <mklehr@gmx.net>2014-03-30 13:02:41 +0200
commit6054cda473945dbe583621df3ab6ae5a3b35ac37 (patch)
tree2d7e1dc6565a913c35d0448537802a16eca4684c /src/node/hooks/express
parent867e40533a13e564cc89449c6640c7a973093d31 (diff)
downloadetherpad-lite-6054cda473945dbe583621df3ab6ae5a3b35ac37.zip
Create a customizable timeslider toolbar
Diffstat (limited to 'src/node/hooks/express')
-rw-r--r--src/node/hooks/express/specialpages.js9
1 files changed, 8 insertions, 1 deletions
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