From ca40eb9481d25165ae7b0a3f42ba1175d404db9c Mon Sep 17 00:00:00 2001 From: tophf Date: Sat, 9 Dec 2017 19:29:17 +0300 Subject: [PATCH] fixup 3318db19: read 'checked' state from checkboxes fixes #297 --- manage/config-dialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manage/config-dialog.js b/manage/config-dialog.js index ae3ba42c..b6c13d5e 100644 --- a/manage/config-dialog.js +++ b/manage/config-dialog.js @@ -263,7 +263,7 @@ function configDialog(style) { } function updateVarOnChange() { - this.va.value = this.value; + this.va.value = this.type !== 'checkbox' ? this.value : this.checked ? '1' : '0'; } function updateVarOnInput(event, debounced = false) {