From 9eff8576ef1ae95edb1e176474af04c82ecb1682 Mon Sep 17 00:00:00 2001 From: John McLear Date: Mon, 18 Feb 2013 22:04:58 +0000 Subject: [PATCH] timeslider init hook --- src/static/js/timeslider.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/static/js/timeslider.js b/src/static/js/timeslider.js index 5203e57ba..240bb9243 100644 --- a/src/static/js/timeslider.js +++ b/src/static/js/timeslider.js @@ -29,8 +29,9 @@ var createCookie = require('./pad_utils').createCookie; var readCookie = require('./pad_utils').readCookie; var randomString = require('./pad_utils').randomString; var _ = require('./underscore'); +var hooks = require('./pluginfw/hooks'); -var socket, token, padId, export_links; +var token, padId, export_links; function init() { $(document).ready(function () @@ -106,6 +107,9 @@ function init() { window.location.reload(); }); + exports.socket = socket; // make the socket available + hooks.aCallAll("postTimesliderInit"); + }); }