From 7e887d4c909d5d7a3a261ba0dfeee3f65db6e4b8 Mon Sep 17 00:00:00 2001 From: msquare Date: Sun, 21 Aug 2016 20:15:52 +0200 Subject: [PATCH] fix checkAll bug --- public/js/forms.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/forms.js b/public/js/forms.js index 896cbb35..f4e2e042 100644 --- a/public/js/forms.js +++ b/public/js/forms.js @@ -12,7 +12,7 @@ function checkAll(id, checked) { var boxes = obj.getElementsByTagName("input"); for (var i = 0; i < boxes.length; i++) { if (boxes[i].type === "checkbox" && !boxes[i].disabled) { - boxes[i].checked = true; + boxes[i].checked = checked; } } }