diff --git a/src/static/js/html10n.js b/src/static/js/html10n.js
index 406409ada..e1c884cd4 100644
--- a/src/static/js/html10n.js
+++ b/src/static/js/html10n.js
@@ -135,7 +135,7 @@ window.html10n = (function(window, document, undefined) {
for (var i=0, n=this.resources.length; i < n; i++) {
this.fetch(this.resources[i], lang, function(e) {
reqs++;
- if(e) console.warn(e)
+ if(e) consoleWarn(e)
if (reqs < n) return;// Call back once all reqs are completed
cb && cb()
@@ -900,6 +900,7 @@ window.html10n = (function(window, document, undefined) {
* Returns the direction of the language returned be html10n#getLanguage
*/
html10n.getDirection = function() {
+ if(!this.language) return
var langCode = this.language.indexOf('-') == -1? this.language : this.language.substr(0, this.language.indexOf('-'))
return html10n.rtl.indexOf(langCode) == -1? 'ltr' : 'rtl'
}
@@ -934,4 +935,4 @@ window.html10n = (function(window, document, undefined) {
window._ = html10n.get;
return html10n
-})(window, document)
\ No newline at end of file
+})(window, document)
diff --git a/src/static/js/timeslider.js b/src/static/js/timeslider.js
index cd98deadd..194899617 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 d3062449f..afacaf23d 100644
--- a/src/templates/timeslider.html
+++ b/src/templates/timeslider.html
@@ -194,7 +194,7 @@