Changeset 6570 for trunk/wp-admin/edit-comments.php
- Timestamp:
- 01/07/2008 08:38:49 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-comments.php
r6430 r6570 5 5 $parent_file = 'edit-comments.php'; 6 6 wp_enqueue_script( 'admin-comments' ); 7 wp_enqueue_script('admin-forms'); 7 8 8 9 require_once('admin-header.php'); … … 10 11 else $mode = attribute_escape($_GET['mode']); 11 12 ?> 12 13 <script type="text/javascript">14 <!--15 function checkAll(form)16 {17 for (i = 0, n = form.elements.length; i < n; i++) {18 if(form.elements[i].type == "checkbox") {19 if(form.elements[i].checked == true)20 form.elements[i].checked = false;21 else22 form.elements[i].checked = true;23 }24 }25 }26 27 function getNumChecked(form)28 {29 var num = 0;30 for (i = 0, n = form.elements.length; i < n; i++) {31 if(form.elements[i].type == "checkbox") {32 if(form.elements[i].checked == true)33 num++;34 }35 }36 return num;37 }38 //-->39 </script>40 13 <div class="wrap"> 41 14 <h2><?php _e('Comments'); ?></h2>
Note: See TracChangeset
for help on using the changeset viewer.