mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 07:36:58 +00:00
Dashboard: toggle the "View" link for comments when Approving / Unapproving from the Dashboard widget.
Fixes #35518. git-svn-id: https://develop.svn.wordpress.org/trunk@37302 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -220,12 +220,15 @@ setCommentsList = function() {
|
||||
if ( settings.data.id == replyID )
|
||||
replyButton.text(adminCommentsL10n.replyApprove);
|
||||
|
||||
c.find('div.comment_status').html('0');
|
||||
c.find( '.row-actions span.view' ).addClass( 'hidden' ).end()
|
||||
.find( 'div.comment_status' ).html( '0' );
|
||||
|
||||
} else {
|
||||
if ( settings.data.id == replyID )
|
||||
replyButton.text(adminCommentsL10n.reply);
|
||||
|
||||
c.find('div.comment_status').html('1');
|
||||
c.find( '.row-actions span.view' ).removeClass( 'hidden' ).end()
|
||||
.find( 'div.comment_status' ).html( '1' );
|
||||
}
|
||||
|
||||
diff = $('#' + settings.element).is('.' + settings.dimClass) ? 1 : -1;
|
||||
|
||||
Reference in New Issue
Block a user