fixup 3318db19: read 'checked' state from checkboxes

fixes #297
This commit is contained in:
tophf 2017-12-09 19:29:17 +03:00
parent f11235aaf9
commit ca40eb9481

View File

@ -263,7 +263,7 @@ function configDialog(style) {
} }
function updateVarOnChange() { function updateVarOnChange() {
this.va.value = this.value; this.va.value = this.type !== 'checkbox' ? this.value : this.checked ? '1' : '0';
} }
function updateVarOnInput(event, debounced = false) { function updateVarOnInput(event, debounced = false) {