Fix AJAX comment moderation on edit post view. Props mdawaffe. fixes #4245

git-svn-id: https://develop.svn.wordpress.org/trunk@7075 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-02-27 23:36:24 +00:00
parent 0808c1b9a1
commit 71bc342e4c
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -2,13 +2,13 @@ var list; var extra;
jQuery(function($) {
var dimAfter = function( r, settings ) {
$('span.comment-count').each( function() {
$('li span.comment-count').each( function() {
var a = $(this);
var n = parseInt(a.html(),10) + ( $('#' + settings.element).is('.' + settings.dimClass) ? 1 : -1 );
a.html( n.toString() );
});
// we need to do the opposite for this guy, TODO: update title
$('.post-com-count').each( function() {
$('.post-com-count span.comment-count').each( function() {
var a = $(this);
var n = parseInt(a.html(),10) + ( $('#' + settings.element).is('.' + settings.dimClass) ? -1 : 1 );
a.html( n.toString() );