Only set url if the revsion will actually be loaded

pull/1418/head
mluto 2013-01-28 21:44:21 +01:00
parent 0b90e5752b
commit 01fe5c183d
1 changed files with 1 additions and 1 deletions

View File

@ -106,8 +106,8 @@ function loadBroadcastSliderJS(fireWhenAllScriptsAreLoaded)
function setSliderPosition(newpos)
{
newpos = Number(newpos);
window.location.hash = "#" + newpos;
if (newpos < 0 || newpos > sliderLength) return;
window.location.hash = "#" + newpos;
$("#ui-slider-handle").css('left', newpos * ($("#ui-slider-bar").width() - 2) / (sliderLength * 1.0));
$("a.tlink").map(function()
{