From 8836981e32f1caa909f8ba22e1619fedd867b396 Mon Sep 17 00:00:00 2001 From: John McLear Date: Tue, 9 Apr 2013 15:55:14 +0100 Subject: [PATCH 1/2] expose broadcast slider so plugins can interact with it --- src/static/js/timeslider.js | 3 ++- src/templates/timeslider.html | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/static/js/timeslider.js b/src/static/js/timeslider.js index cd98dead..19489961 100644 --- a/src/static/js/timeslider.js +++ b/src/static/js/timeslider.js @@ -108,6 +108,7 @@ function init() { }); exports.socket = socket; // make the socket available + exports.BroadcastSlider = BroadcastSlider; // Make the slider available hooks.aCallAll("postTimesliderInit"); }); @@ -133,7 +134,7 @@ function sendSocketMsg(type, data) var fireWhenAllScriptsAreLoaded = []; -var BroadcastSlider, changesetLoader; +var changesetLoader; function handleClientVars(message) { //save the client Vars diff --git a/src/templates/timeslider.html b/src/templates/timeslider.html index d3062449..265ea2a5 100644 --- a/src/templates/timeslider.html +++ b/src/templates/timeslider.html @@ -194,7 +194,7 @@