fix timeslider title issues

pull/2566/head
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](); fireWhenAllScriptsAreLoaded[i]();
} }
$("#ui-slider-handle").css('left', $("#ui-slider-bar").width() - 2); $("#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 = ''; exports.baseURL = '';

View File

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