From a6b1a39a0fbe91f7ebddf7b2dce9e6e0b4075cff Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Tue, 14 Apr 2020 17:30:25 +0200 Subject: [PATCH] Fix checkbox --- static/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/index.html b/static/index.html index 338ff99..0f0a017 100644 --- a/static/index.html +++ b/static/index.html @@ -75,7 +75,7 @@ .key { width: 30px; } - + .extra { width: 35px; } @@ -204,7 +204,7 @@ case "null": let cb = document.createElement("input"); cb.type = "checkbox"; - cb.value = (column[field] === "YES" ? 1 : 0); + cb.checked = column[field] === "YES"; cb.disabled = true; column[field] = cb; case "extra":