summaryrefslogtreecommitdiff
path: root/src/static/js/broadcast_slider.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/static/js/broadcast_slider.js')
-rw-r--r--src/static/js/broadcast_slider.js14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/static/js/broadcast_slider.js b/src/static/js/broadcast_slider.js
index 9427c191..8179b7b5 100644
--- a/src/static/js/broadcast_slider.js
+++ b/src/static/js/broadcast_slider.js
@@ -198,11 +198,7 @@ function loadBroadcastSliderJS(fireWhenAllScriptsAreLoaded)
});
if (numAnonymous > 0)
{
- var anonymousAuthorString;
- if(numAnonymous == 1)
- anonymousAuthorString = html10n.get("timeslider.unnamedauthor", { num: numAnonymous });
- else
- anonymousAuthorString = html10n.get("timeslider.unnamedauthors", { num: numAnonymous });
+ var anonymousAuthorString = html10n.get("timeslider.unnamedauthors", { num: numAnonymous });
if (numNamed !== 0){
authorsList.append(' + ' + anonymousAuthorString);
@@ -465,10 +461,10 @@ function loadBroadcastSliderJS(fireWhenAllScriptsAreLoaded)
var startPos = clientVars.collab_client_vars.rev;
if(window.location.hash.length > 1)
{
- var hashRev = Number(window.location.hash.substr(1));
- if(!isNaN(hashRev))
- {
- // this is necessary because of the socket.io-event which loads the changesets
+ var hashRev = Number(window.location.hash.substr(1));
+ if(!isNaN(hashRev))
+ {
+ // this is necessary because of the socket.io-event which loads the changesets
setTimeout(function() { setSliderPosition(hashRev); }, 1);
}
}