Merge branch 'fix_on_change_cell_caption_callback' into 'develop'

Fix 'on change' cell caption callback

See merge request raphj/trivabble!26
This commit is contained in:
Raphaël Jakse 2021-04-26 15:56:19 +00:00
commit 9ef26b56ad
1 changed files with 2 additions and 1 deletions

View File

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