From 9ed9647018b31dbde329bca598e4e932a847ae8c Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Wed, 6 May 2020 01:19:01 +0200 Subject: [PATCH] correct select control position if user cancel the change --- public/trivabble.js | 3 +++ 1 file changed, 3 insertions(+) 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; } ); } -- 2.30.2