From 516f66e0b3dcbb37e7895ed5d6b30d221db97a54 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Jakse?= Date: Sat, 24 Apr 2021 21:29:15 +0200 Subject: [PATCH] Don't set cell caption setting on load --- public/trivabble.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"); -- 2.30.2