From: Laurent Mazet Date: Mon, 26 Apr 2021 04:22:31 +0000 (+0200) Subject: set mode variable X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=df930fa3740e2a595fae547fe9cdb88ec49fe715;p=trivabble.git set mode variable --- diff --git a/public/trivabble.js b/public/trivabble.js index 5dff925..1d8ea9c 100644 --- a/public/trivabble.js +++ b/public/trivabble.js @@ -2315,7 +2315,8 @@ setCellCaptions(getSetting("CELL_CAPTIONS")); document.getElementById("cell-captions").onchange = function () { - setCellCaptions(document.getElementById("cell-captions").value); + const mode = document.getElementById("cell-captions").value; + setCellCaptions(mode); setSetting("CELL_CAPTIONS", mode); }; }