Merge pull request #1723 from ether/expose-broadcastslider

expose broadcast slider so plugins can interact with it
pull/1709/merge
John McLear 2013-04-11 09:03:43 -07:00
commit dc6e2e13fe
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;
BroadcastSlider = require('ep_etherpad-lite/static/js/timeslider').BroadcastSlider;
plugins.baseURL = baseURL;
plugins.update(function () {