Make WordPress Core

Ticket #25696: edit-comments.js.diff

File edit-comments.js.diff, 1.2 KB (added by mt8.biz, 10 years ago)

some fix.

  • trunk/src/wp-admin/js/edit-comments.js

     
    390390                $('#comment_post_ID', editRow).val(post_id);
    391391                $('#comment_ID', editRow).val(comment_id);
    392392
     393                if ( $('a.save', editRow).hasClass('button-primary-disabled') )
     394                        $('a.save', editRow).removeClass('button-primary-disabled');
     395
    393396                if ( h > 120 )
    394397                        $('#replycontent', editRow).css('height', (35+h) + 'px');
    395398
     
    454457                $('#replysubmit .error').hide();
    455458                $('#replysubmit .spinner').show();
    456459
     460                if ( $('#replyrow a.save').hasClass('button-primary-disabled') )
     461                        return false;
     462                   
     463                $('#replyrow a.save').addClass('button-primary-disabled');
     464
    457465                $('#replyrow input').not(':button').each(function() {
    458466                        var t = $(this);
    459467                        post[ t.attr('name') ] = t.val();
     
    537545
    538546                $('#replysubmit .spinner').hide();
    539547
     548                if ( $('#replysubmit a.save').hasClass('button-primary-disabled') )
     549                        $('#replysubmit a.save').removeClass('button-primary-disabled');
     550
    540551                if ( r.responseText )
    541552                        er = r.responseText.replace( /<.[^<>]*?>/g, '' );
    542553