fix timeslider title issues

This commit is contained in:
John McLear 2015-04-02 00:03:34 +01:00
parent fef746e80e
commit f6b4b5603d
2 changed files with 9 additions and 3 deletions

View File

@ -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 = '';

View File

@ -61,11 +61,11 @@
<div id="ui-slider-bar"></div>
</div>
<div id="playpause_button">
<button id="playpause_button_icon" class="" data-l10n-id="timeslider.playPause"></button>
<button id="playpause_button_icon" class=""></button>
</div>
<div id="steppers">
<button class="stepper" id="leftstep" data-l10n-id="timeslider.backRevision"></button>
<button class="stepper" id="rightstep" data-l10n-id="timeslider.forwardRevision"></button>
<button class="stepper" id="leftstep"></button>
<button class="stepper" id="rightstep"></button>
</div>
</div>