From f6b4b5603dfe34ef04f88166579f81e0abcf64ec Mon Sep 17 00:00:00 2001 From: John McLear Date: Thu, 2 Apr 2015 00:03:34 +0100 Subject: [PATCH] fix timeslider title issues --- src/static/js/timeslider.js | 6 ++++++ src/templates/timeslider.html | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/static/js/timeslider.js b/src/static/js/timeslider.js index ec237df5e..580a7a03d 100644 --- a/src/static/js/timeslider.js +++ b/src/static/js/timeslider.js @@ -157,6 +157,12 @@ function handleClientVars(message) fireWhenAllScriptsAreLoaded[i](); } $("#ui-slider-handle").css('left', $("#ui-slider-bar").width() - 2); + + // Translate some strings where we only want to set the title not the actual values + $('#playpause_button_icon').attr("title", html10n.get("timeslider.playPause")); + $('#leftstep').attr("title", html10n.get("timeslider.backRevision")); + $('#rightstep').attr("title", html10n.get("timeslider.forwardRevision")); + } exports.baseURL = ''; diff --git a/src/templates/timeslider.html b/src/templates/timeslider.html index 45d7832d1..20688ea8a 100644 --- a/src/templates/timeslider.html +++ b/src/templates/timeslider.html @@ -61,11 +61,11 @@
- +
- - + +