소스 검색

OP task #619 | fix checkbox

Avetisyan Karen 5 년 전
부모
커밋
3a05393b89
2개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. BIN
      web_interface/dist/wui-9/role.js
  2. 1 1
      web_interface/src/wui-9/role.js

BIN
web_interface/dist/wui-9/role.js


+ 1 - 1
web_interface/src/wui-9/role.js

@@ -355,7 +355,6 @@ function checkAll(e,id){
   if ($(id).checked && !$(id).indeterminate){
     for (var i = 0; i < rows.length; i++) {
       var input = rows[i].children[e].getElementsByTagName('input')[0];
-      console.log(input.checked, input.id);
       if (!input.checked) {
         input.checked = true;
         snmpPush(input.id);
@@ -395,6 +394,7 @@ function allCheckboxStates(e,id){
     }
   }
   if (c.length && nc.length) {
+    $(id).checked = false;
     $(id).indeterminate = true;
   } else if (c.length == rows.length) {
     $(id).checked = true;