mirror of
https://github.com/WordPress/WordPress.git
synced 2024-08-21 13:22:57 +02:00
git-svn-id: http://svn.automattic.com/wordpress/trunk@3847 1a063a9b-81f0-0310-95a4-ce76da25c4cd
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);
|
|
}
|
|
});
|
|
|