fix checkAll bug
This commit is contained in:
parent
191328d703
commit
7e887d4c90
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue