fix checkAll bug

This commit is contained in:
msquare 2016-08-21 20:15:52 +02:00
parent 191328d703
commit 7e887d4c90
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ function checkAll(id, checked) {
var boxes = obj.getElementsByTagName("input"); var boxes = obj.getElementsByTagName("input");
for (var i = 0; i < boxes.length; i++) { for (var i = 0; i < boxes.length; i++) {
if (boxes[i].type === "checkbox" && !boxes[i].disabled) { if (boxes[i].type === "checkbox" && !boxes[i].disabled) {
boxes[i].checked = true; boxes[i].checked = checked;
} }
} }
} }