X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/ebed93329759e2584eee3c4e2aa1deddc1c32bf8..1e354d2079b77adb249465d86e86fa8a59f9dc4e:/js/checkbox.js diff --git a/js/checkbox.js b/js/checkbox.js index da738c2..0bdce8e 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 updateAction(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; + } + } +}