Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added spacing between the play button and the hidden text.
  • Loading branch information
LaurentGoderre committed Jul 19, 2013
1 parent d8d884f commit 34089f7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/js/workers/tabbedinterface.js
Expand Up @@ -109,6 +109,7 @@
stopHiddenText = _pe.dic.get('%tab-rotation', 'disable'),
startText = _pe.dic.get('%play'),
startHiddenText = _pe.dic.get('%tab-rotation', 'enable'),
sep = ' ' + _pe.dic.get('%hyphen') + ' ',
stopCycle,
toggleCycle,
tabListCount = $tabbedInterfaces.length > 1 ? ' ' + ($tabbedInterfaces.index(elm) + 1) : '',
Expand Down Expand Up @@ -248,8 +249,8 @@
toggleCycle = function () {
if ($toggleRow.data('state') === 'stopped') {
cycle($tabs, $panels, opts);
$toggleButton.removeClass('tabs-start').addClass('tabs-stop').html(stopText + '<span class="wb-invisible">' + stopHiddenText + '</span>');
return $('.wb-invisible', $toggleButton).text(stopHiddenText);
$toggleButton.removeClass('tabs-start').addClass('tabs-stop').html(stopText + '<span class="wb-invisible">' + sep + stopHiddenText + '</span>');
return $('.wb-invisible', $toggleButton).text(sep + stopHiddenText);
}
if ($toggleRow.data('state') === 'started') {
return stopCycle();
Expand Down Expand Up @@ -285,8 +286,8 @@
elm.find('.tabs-roller').width(0).hide().stop();
elm.find('.tabs-toggle').data('state', 'stopped');
$nav.removeClass('started');
$toggleButton.removeClass('tabs-stop').addClass('tabs-start').html(startText + '<span class="wb-invisible">' + startHiddenText + '</span>');
return $('.wb-invisible', $toggleButton).text(startHiddenText);
$toggleButton.removeClass('tabs-stop').addClass('tabs-start').html(startText + '<span class="wb-invisible">' + sep + startHiddenText + '</span>');
return $('.wb-invisible', $toggleButton).text(sep + startHiddenText);
};
//
// creates a play/pause, prev/next buttons, and lets the user toggle the stateact as PREV button MB
Expand All @@ -309,7 +310,7 @@
//
//End NEXT button
//
$toggleRow = $('<li class="tabs-toggle"><a class="tabs-stop" href="javascript:;" role="button">' + stopText + '<span class="wb-invisible">' + stopHiddenText + '</span></a></li>');
$toggleRow = $('<li class="tabs-toggle"><a class="tabs-stop" href="javascript:;" role="button">' + stopText + '<span class="wb-invisible">' + sep + stopHiddenText + '</span></a></li>');
$toggleButton = $toggleRow.find('a');
$nav.append($toggleRow);
$toggleRow.click(toggleCycle).on('keydown', function (e) {
Expand Down

0 comments on commit 34089f7

Please sign in to comment.