Make WordPress Core


Ignore:
Timestamp:
02/27/2008 11:36:24 PM (16 years ago)
Author:
ryan
Message:

Fix AJAX comment moderation on edit post view. Props mdawaffe. fixes #4245

File:
1 edited

Legend:

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

    r7050 r7075  
    33
    44var dimAfter = function( r, settings ) {
    5     $('span.comment-count').each( function() {
     5    $('li span.comment-count').each( function() {
    66        var a = $(this);
    77        var n = parseInt(a.html(),10) + ( $('#' + settings.element).is('.' + settings.dimClass) ? 1 : -1 );
     
    99    });
    1010    // we need to do the opposite for this guy, TODO: update title
    11     $('.post-com-count').each( function() {
     11    $('.post-com-count span.comment-count').each( function() {
    1212        var a = $(this);
    1313        var n = parseInt(a.html(),10) + ( $('#' + settings.element).is('.' + settings.dimClass) ? -1 : 1 );
Note: See TracChangeset for help on using the changeset viewer.