Make WordPress Core


Ignore:
Timestamp:
01/07/2008 08:38:49 PM (17 years ago)
Author:
ryan
Message:

Mass select for users from cpoteet and mdawaffe. fixes #5592

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-comments.php

    r6430 r6570  
    55$parent_file = 'edit-comments.php';
    66wp_enqueue_script( 'admin-comments' );
     7wp_enqueue_script('admin-forms');
    78
    89require_once('admin-header.php');
     
    1011else $mode = attribute_escape($_GET['mode']);
    1112?>
    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             else
    22                 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>
    4013<div class="wrap">
    4114<h2><?php _e('Comments'); ?></h2>
Note: See TracChangeset for help on using the changeset viewer.