Skip to content

Commit

Permalink
Fix button arrows on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
proginosko committed Nov 9, 2022
1 parent 2addd8f commit d0c950e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions options.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ function initForm(numSets) {
// Set up JQuery UI widgets
$("#tabs").tabs({ activate: onActivate });
for (let set = 1; set <= gNumSets; set++) {
if (gIsAndroid) {
// Use alternative arrows on move-left/move-right buttons
$(`#moveSetL${set}`).html("&#x25C0; Move Set");
$(`#moveSetR${set}`).html("Move Set &#x25B6;");
}
$(`#moveSetL${set}`).click(function (e) {
swapSets(set, set - 1);
$("#tabs").tabs("option", "active", set - 2);
Expand Down

0 comments on commit d0c950e

Please sign in to comment.