correct select control position if user cancel the change
authorLaurent Mazet <mazet@softndesign.org>
Tue, 5 May 2020 23:19:01 +0000 (01:19 +0200)
committerLaurent Mazet <mazet@softndesign.org>
Tue, 5 May 2020 23:19:01 +0000 (01:19 +0200)
public/trivabble.js

index cea9a48c589803fc6629b9b7d41a130caf4e1206..7437b36e2a03334caf0d7ccaad8645b53256b676 100644 (file)
             format(_("Are you sure you want to change board to '{0}'? This will put all the tiles back in the bag and start another game."), _(langName[lang])),
             function () {
                 sendCmds([{cmd: "changeBoard", lang: lang}]);
+            },
+            function () {
+                document.getElementById("board-lang").value = localStorage.trivabbleBoardLang;
             }
         );
     }