X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/183095bae3383f476ee080238572dfe637e63b61..b4a9e00ed371c95536e74e700df60d6590413c45:/js/checkbox.js?ds=inline diff --git a/js/checkbox.js b/js/checkbox.js index ca9170f..0bdce8e 100644 --- a/js/checkbox.js +++ b/js/checkbox.js @@ -16,12 +16,12 @@ function checkAction(action) { location.href=url; } -function updataAction(chkBtn) { +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; + c[i].checked = checked; } } }