From: Laurent Mazet Date: Tue, 5 May 2020 23:19:01 +0000 (+0200) Subject: correct select control position if user cancel the change X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=9ed9647018b31dbde329bca598e4e932a847ae8c;p=trivabble.git correct select control position if user cancel the change --- diff --git a/public/trivabble.js b/public/trivabble.js index cea9a48..7437b36 100644 --- a/public/trivabble.js +++ b/public/trivabble.js @@ -1342,6 +1342,9 @@ 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; } ); }