Make WordPress Core

Changeset 7075


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

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

Location:
trunk
Files:
2 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 );
  • trunk/wp-includes/script-loader.php

    r7060 r7075  
    126126                'strong' => __('Strong')
    127127            ) );
    128             $this->add( 'admin-comments', '/wp-admin/js/edit-comments.js', array('wp-lists'), '20071104' );
     128            $this->add( 'admin-comments', '/wp-admin/js/edit-comments.js', array('wp-lists'), '20080227' );
    129129            $this->add( 'admin-users', '/wp-admin/js/users.js', array('wp-lists'), '20070823' );
    130130            $this->add( 'admin-forms', '/wp-admin/js/forms.js', false, '20080108' );
Note: See TracChangeset for help on using the changeset viewer.