X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/e5c330f15084740674e307ab978fb5f07acdb84f..183095bae3383f476ee080238572dfe637e63b61:/js/checkbox.js?ds=sidebyside diff --git a/js/checkbox.js b/js/checkbox.js index da738c2..ca9170f 100644 --- a/js/checkbox.js +++ b/js/checkbox.js @@ -15,3 +15,13 @@ function checkAction(action) { var url = 'quarantine.php?op=' + action + '&id=' + ids; location.href=url; } + +function updataAction(chkBtn) { + var checked = chkBtn.checked; + var c = document.getElementsByName('action'); + for (var i = 0; i < c.length; i++) { + if (c[i].type == 'checkbox' && c[i].checked != checked) { + c[i].checked == checked; + } + } +}