a.click(function( e ){
e.preventDefault();
+ e.stopPropagation(); // ticket #35904
list.wpList.del(this);
$('#undo-' + id).css( {backgroundColor:'#ceb'} ).fadeOut(350, function(){
$(this).remove();
approved = commentRow.hasClass( 'approved' ),
unapproved = commentRow.hasClass( 'unapproved' ),
spammed = commentRow.hasClass( 'spam' ),
- trashed = commentRow.hasClass( 'trash' );
+ trashed = commentRow.hasClass( 'trash' ),
+ undoing = false; // ticket #35904
updateDashboardText( newTotal );
}
}
+ undoing = true;
+
// user clicked "Spam"
} else if ( targetParent.is( 'span.spam' ) ) {
// the comment is currently approved
}
}
- if ( ! theExtraList || theExtraList.size() === 0 || theExtraList.children().size() === 0 ) {
+ if ( ! theExtraList || theExtraList.length === 0 || theExtraList.children().length === 0 || undoing ) {
return;
}