c5cfbc9e5e
git-svn-id: https://develop.svn.wordpress.org/trunk@3847 602fd350-edb4-49c9-b593-d223f7449a82
24 lines
999 B
JavaScript
24 lines
999 B
JavaScript
addLoadEvent(function() {
|
|
theCommentList = new listMan('the-comment-list');
|
|
if ( !theCommentList )
|
|
return false;
|
|
theCommentList.dimComplete = function(what,id,dimClass) {
|
|
var m = document.getElementById('awaitmod');
|
|
if ( document.getElementById(what + '-' + id).className.match(dimClass) ) m.innerHTML = parseInt(m.innerHTML,10) + 1;
|
|
else m.innerHTML = parseInt(m.innerHTML,10) - 1;
|
|
}
|
|
theCommentList.delComplete = function(what,id) {
|
|
var m = document.getElementById('awaitmod');
|
|
if ( document.getElementById(what + '-' + id).className.match('unapproved') ) m.innerHTML = parseInt(m.innerHTML,10) - 1;
|
|
}
|
|
if ( theList ) // the post list: edit.php
|
|
theList.delComplete = function() {
|
|
var comments = document.getElementById('comments');
|
|
var commdel = encloseFunc(function(a){a.parentNode.removeChild(a);},comments);
|
|
var listdel = encloseFunc(function(a){a.parentNode.removeChild(a);},theCommentList.theList);
|
|
setTimeout(commdel,705);
|
|
setTimeout(listdel,705);
|
|
}
|
|
});
|
|
|