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:
Ryan Boren 2007-03-27 23:49:15 +00:00
parent 51cd99bb02
commit cb5bbf3ee4
1 changed files with 1 additions and 0 deletions

View File

@ -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 ) {