Make WordPress Core


Ignore:
Timestamp:
06/06/2006 04:14:04 AM (19 years ago)
Author:
ryan
Message:

List manipulation improvements from mdawaffe. fixes #2786

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/moderation.php

    r3788 r3847  
    44$title = __('Moderate comments');
    55$parent_file = 'edit.php';
    6 wp_enqueue_script( 'listman' );
     6wp_enqueue_script( 'admin-comments' );
    77
    88$wpvarstoreset = array('action', 'item_ignored', 'item_deleted', 'item_approved', 'item_spam', 'feelinglucky');
     
    135135    <?php wp_nonce_field('moderate-comments') ?>
    136136    <input type="hidden" name="action" value="update" />
    137     <ol id="the-list" class="commentlist">
     137    <ol id="the-comment-list" class="commentlist">
    138138<?php
    139139$i = 0;
     
    142142    $comment_date = mysql2date(get_settings("date_format") . " @ " . get_settings("time_format"), $comment->comment_date);
    143143    $post_title = $wpdb->get_var("SELECT post_title FROM $wpdb->posts WHERE ID='$comment->comment_post_ID'");
    144     if ($i % 2) $class = 'class="alternate"';
    145     else $class = '';
    146     echo "\n\t<li id='comment-$comment->comment_ID' $class>";
     144    if ($i % 2) $class = 'js-unapproved alternate';
     145    else $class = 'js-unapproved';
     146    echo "\n\t<li id='comment-$comment->comment_ID' class='$class'>";
    147147    ?>
    148148    <p><strong><?php comment_author() ?></strong> <?php if ($comment->comment_author_email) { ?>| <?php comment_author_email_link() ?> <?php } if ($comment->comment_author_url && 'http://' != $comment->comment_author_url) { ?> | <?php comment_author_url_link() ?> <?php } ?>| <?php _e('IP:') ?> <a href="http://ws.arin.net/cgi-bin/whois.pl?queryinput=<?php comment_author_IP() ?>"><?php comment_author_IP() ?></a></p>
     
    150150<p><?php comment_date('M j, g:i A'); ?> &#8212; [ <?php
    151151echo '<a href="comment.php?action=editcomment&amp;comment='.$comment->comment_ID.'">' . __('Edit') . '</a> | ';
    152 echo " <a href=\"post.php?action=deletecomment&amp;p=".$comment->comment_post_ID."&amp;comment=".$comment->comment_ID."\" onclick=\"return deleteSomething( 'comment', $comment->comment_ID, '" . sprintf(__("You are about to delete this comment by &quot;%s&quot;.\\n&quot;Cancel&quot; to stop, &quot;OK&quot; to delete."), js_escape($comment->comment_author)) . "' );\">" . __('Delete ') . "</a> | "; ?>
     152echo " <a href=\"post.php?action=deletecomment&amp;p=".$comment->comment_post_ID."&amp;comment=".$comment->comment_ID."\" onclick=\"return deleteSomething( 'comment', $comment->comment_ID, '" . sprintf(__("You are about to delete this comment by &quot;%s&quot;.\\n&quot;Cancel&quot; to stop, &quot;OK&quot; to delete."), js_escape($comment->comment_author)) . "', theCommentList );\">" . __('Delete ') . "</a> | "; ?>
    153153<?php
    154154$post = get_post($comment->comment_post_ID);
Note: See TracChangeset for help on using the changeset viewer.