From: Raphaƫl Jakse Date: Sat, 24 Apr 2021 19:29:15 +0000 (+0200) Subject: Don't set cell caption setting on load X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=516f66e0b3dcbb37e7895ed5d6b30d221db97a54;p=trivabble.git Don't set cell caption setting on load --- diff --git a/public/trivabble.js b/public/trivabble.js index b485aae..5dff925 100644 --- a/public/trivabble.js +++ b/public/trivabble.js @@ -2314,13 +2314,13 @@ function initCellCaptions() { setCellCaptions(getSetting("CELL_CAPTIONS")); - document.getElementById("cell-captions").onclick = function () { + document.getElementById("cell-captions").onchange = function () { setCellCaptions(document.getElementById("cell-captions").value); + setSetting("CELL_CAPTIONS", mode); }; } function setCellCaptions(mode) { - setSetting("CELL_CAPTIONS", mode); document.getElementById("cell-captions").value = mode; board.classList.remove("special-cell-label-short");