mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-30 16:17:56 +02:00
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:
parent
4de9ca69c2
commit
eca7d3c329
@ -27,6 +27,7 @@ addLoadEvent(function() {
|
|||||||
|
|
||||||
theCommentList.delComplete = function(what,id) {
|
theCommentList.delComplete = function(what,id) {
|
||||||
var m = document.getElementById('awaitmod');
|
var m = document.getElementById('awaitmod');
|
||||||
|
what = what.split('-')[0];
|
||||||
if ( document.getElementById(what + '-' + id).className.match('unapproved') )
|
if ( document.getElementById(what + '-' + id).className.match('unapproved') )
|
||||||
m.innerHTML = parseInt(m.innerHTML,10) - 1;
|
m.innerHTML = parseInt(m.innerHTML,10) - 1;
|
||||||
if ( theExtraCommentList && commentNum ) {
|
if ( theExtraCommentList && commentNum ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user