Fix list JS when marking comment as spam. Props mdawaffe. fixes #4038
git-svn-id: https://develop.svn.wordpress.org/trunk@5122 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
51cd99bb02
commit
cb5bbf3ee4
@ -27,6 +27,7 @@ addLoadEvent(function() {
|
||||
|
||||
theCommentList.delComplete = function(what,id) {
|
||||
var m = document.getElementById('awaitmod');
|
||||
what = what.split('-')[0];
|
||||
if ( document.getElementById(what + '-' + id).className.match('unapproved') )
|
||||
m.innerHTML = parseInt(m.innerHTML,10) - 1;
|
||||
if ( theExtraCommentList && commentNum ) {
|
||||
|
Loading…
Reference in New Issue
Block a user