expose broadcast slider so plugins can interact with it

This commit is contained in:
John McLear 2013-04-09 15:55:14 +01:00
parent 99dff9c4e5
commit 8836981e32
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -194,7 +194,7 @@
<!-- Bootstrap -->
<script type="text/javascript" >
var clientVars = {};
var BroadcastSlider;
(function () {
var pathComponents = location.pathname.split('/');
@ -214,7 +214,7 @@
var plugins = require('ep_etherpad-lite/static/js/pluginfw/client_plugins');
var socket = require('ep_etherpad-lite/static/js/timeslider').socket;
var BroadcastSlider = require('ep_etherpad-lite/static/js/timeslider').BroadcastSlider;
plugins.baseURL = baseURL;
plugins.update(function () {