CoreFiles by mySites.guru
edit-comments.js23 lines, 999 bytes, from wordpress-2.1.zip
Raw History Compare with 2.0.11
md5
c760347780287cbf8cf9baeb4c414c69
sha1
6cd85484c5a070b5ed3922dba07b1502af909a00
sha256
924d00ab378375857df473b71c2813c9839909864aa8771d81d3e45228aca1e1
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);
		}
});

The same content is in 15 releases, WordPress 2.1-beta1 to 2.1.3. See them all, or every version of this file.