mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-05 20:26:49 +02:00
Only set url if the revsion will actually be loaded
This commit is contained in:
parent
0b90e5752b
commit
01fe5c183d
@ -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()
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user