Fix checkbox

This commit is contained in:
Daniel Bulant 2020-04-14 17:30:25 +02:00
parent 225222e511
commit a6b1a39a0f

View file

@ -75,7 +75,7 @@
.key { .key {
width: 30px; width: 30px;
} }
.extra { .extra {
width: 35px; width: 35px;
} }
@ -204,7 +204,7 @@
case "null": case "null":
let cb = document.createElement("input"); let cb = document.createElement("input");
cb.type = "checkbox"; cb.type = "checkbox";
cb.value = (column[field] === "YES" ? 1 : 0); cb.checked = column[field] === "YES";
cb.disabled = true; cb.disabled = true;
column[field] = cb; column[field] = cb;
case "extra": case "extra":