diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index 0bd09ca74b..632f2099d8 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -23,6 +23,18 @@ function checkAll(form) } } } + +function getNumChecked(form) +{ + var num = 0; + for (i = 0, n = form.elements.length; i < n; i++) { + if(form.elements[i].type == "checkbox") { + if(form.elements[i].checked == true) + num++; + } + } + return num; +} //-->