Don't set cell caption setting on load

This commit is contained in:
Raphaël Jakse 2021-04-24 21:29:15 +02:00
parent b6682f2b19
commit 516f66e0b3
1 changed files with 2 additions and 2 deletions

View File

@ -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");