Ticket #10422: garyc40-10422.patch

File garyc40-10422.patch, 910 bytes (added by garyc40, 2 years ago)

there's a patch for that

  • wp-admin/js/edit-comments.dev.js

    diff --git wp-admin/js/edit-comments.dev.js wp-admin/js/edit-comments.dev.js
    index 76bcc79..85df8a1 100644
    setCommentsList = function() { 
    244244                                $('#undo-' + id).fadeIn(300, function(){ $(this).show() }); 
    245245                }); 
    246246        $(listTable).bind('changePage', refillTheExtraList); 
     247        $(commentReply).bind('sent', function(){ 
     248                dashboardTotals(1); 
     249        }); 
    247250}; 
    248251 
    249252commentReply = { 
    commentReply = { 
    418421                        type : 'POST', 
    419422                        url : ajaxurl, 
    420423                        data : post, 
    421                         success : function(x) { commentReply.show(x); }, 
     424                        success : function(x) { commentReply.show(x); $(commentReply).trigger('sent'); }, 
    422425                        error : function(r) { commentReply.error(r); } 
    423426                }); 
    424427 
    commentReply = { 
    441444 
    442445                r = r.responses[0]; 
    443446                c = r.data; 
     447 
    444448                id = '#comment-' + r.id; 
    445449                if ( 'edit-comment' == this.act ) 
    446450                        $(id).remove();