From fc60ab24fa8fa32283f5d99fd275b85cca68a4d2 Mon Sep 17 00:00:00 2001 From: mluto Date: Thu, 7 Feb 2013 15:34:10 +0100 Subject: [PATCH] Removed debug code, moved hash-setting after the param-checking --- src/static/js/broadcast_slider.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/static/js/broadcast_slider.js b/src/static/js/broadcast_slider.js index 5acaedaff..e1f7b6c0e 100644 --- a/src/static/js/broadcast_slider.js +++ b/src/static/js/broadcast_slider.js @@ -107,16 +107,16 @@ function loadBroadcastSliderJS(fireWhenAllScriptsAreLoaded) { newpos = Number(newpos); if (newpos < 0 || newpos > sliderLength) return; - window.location.hash = "#" + newpos; if(!newpos){ newpos = 0; // stops it from displaying NaN if newpos isn't set } + window.location.hash = "#" + newpos; $("#ui-slider-handle").css('left', newpos * ($("#ui-slider-bar").width() - 2) / (sliderLength * 1.0)); $("a.tlink").map(function() { $(this).attr('href', $(this).attr('thref').replace("%revision%", newpos)); }); - console.log(newpos); + $("#revision_label").html(html10n.get("timeslider.version", { "version": newpos})); if (newpos == 0)