Fix checkbox

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

View file

@ -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":