diff options
author | Egil Moeller <egil.moller@freecode.no> | 2012-04-25 17:51:03 +0200 |
---|---|---|
committer | Egil Moeller <egil.moller@freecode.no> | 2012-04-25 17:51:03 +0200 |
commit | c173ebe197b173ce31d908587d76c9310fd35e62 (patch) | |
tree | deb2ed782aa3c887e6be33c09875afdd216959f3 /src/templates/timeslider.html | |
parent | e559ef56406eb7868fc52221b722b8f4fd349400 (diff) | |
parent | 83648481c349f59e6e2214832a89193842717da4 (diff) | |
download | etherpad-lite-c173ebe197b173ce31d908587d76c9310fd35e62.zip |
Merge branch 'master' into timeslider-realtimeupdate+readonly-pads
Diffstat (limited to 'src/templates/timeslider.html')
-rw-r--r-- | src/templates/timeslider.html | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/src/templates/timeslider.html b/src/templates/timeslider.html index 9cea2c50..cfbad64c 100644 --- a/src/templates/timeslider.html +++ b/src/templates/timeslider.html @@ -164,22 +164,30 @@ </div> </div> -<script type="text/javascript" src="../../../static/js/require-kernel.js"></script> -<script type="text/javascript" src="../../../static/js/jquery.js"></script> -<script type="text/javascript" src="../../../socket.io/socket.io.js"></script> -<script type="text/javascript" src="../../../javascripts/lib/ep_etherpad-lite/static/js/timeslider.js?callback=require.define"></script> -<script type="text/javascript" src="../../../static/custom/timeslider.js"></script> +<script type="text/javascript" src="../../static/js/require-kernel.js"></script> +<script type="text/javascript" src="../../static/js/jquery.js"></script> +<script type="text/javascript" src="../../socket.io/socket.io.js"></script> +<script type="text/javascript" src="../../javascripts/lib/ep_etherpad-lite/static/js/timeslider.js?callback=require.define"></script> +<script type="text/javascript" src="../../static/custom/timeslider.js"></script> + <script type="text/javascript" > document.domain = document.domain; var clientVars = {}; + (function () { - require.setRootURI("../../../javascripts/src"); - require.setLibraryURI("../../../javascripts/lib"); + var baseURL = '../../'; + + require.setRootURI(baseURL + "javascripts/src"); + require.setLibraryURI(baseURL + "javascripts/lib"); require.setGlobalKeyPath("require"); var plugins = require('ep_etherpad-lite/static/js/pluginfw/plugins'); + plugins.baseURL = baseURL; + plugins.update(function () { - require('ep_etherpad-lite/static/js/timeslider').init(); + var timeslider = require('ep_etherpad-lite/static/js/timeslider') + timeslider.baseURL = baseURL; + timeslider.init(); /* TODO: These globals shouldn't exist. */ padeditbar = require('ep_etherpad-lite/static/js/pad_editbar').padeditbar; |