Make WordPress Core


Ignore:
Timestamp:
02/26/2008 10:45:46 PM (16 years ago)
Author:
ryan
Message:

Ajax tweaks for edit-comments.php from mdawaffe. fixes #6009

File:
1 edited

Legend:

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

    r6678 r7050  
    33
    44var dimAfter = function( r, settings ) {
    5     $('.comment-count span').each( function() {
     5    $('span.comment-count').each( function() {
    66        var a = $(this);
    77        var n = parseInt(a.html(),10) + ( $('#' + settings.element).is('.' + settings.dimClass) ? 1 : -1 );
     
    1717
    1818var delAfter = function( r, settings ) {
    19     $('.comment-count span').each( function() {
     19    $('span.comment-count').each( function() {
    2020        var a = $(this);
    2121        if ( a.parent('.current').size() || $('#' + settings.element).is('.unapproved') && parseInt(a.html(),10) > 0 ) {
Note: See TracChangeset for help on using the changeset viewer.