Fix list JS when marking comment as spam. Props mdawaffe. fixes #4038

git-svn-id: http://svn.automattic.com/wordpress/trunk@5122 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-03-27 23:49:15 +00:00
parent 4de9ca69c2
commit eca7d3c329
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 ) {