Comment bubble count fix from nbachiyski. fixes #5694

git-svn-id: http://svn.automattic.com/wordpress/trunk@6678 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2008-01-29 16:43:20 +00:00
parent b26cf6d97d
commit 1aef57fb18
2 changed files with 3 additions and 3 deletions

View File

@@ -2,7 +2,7 @@ var list; var extra;
jQuery(function($) {
var dimAfter = function( r, settings ) {
$('.comment-count').each( function() {
$('.comment-count span').each( function() {
var a = $(this);
var n = parseInt(a.html(),10) + ( $('#' + settings.element).is('.' + settings.dimClass) ? 1 : -1 );
a.html( n.toString() );
@@ -16,7 +16,7 @@ var dimAfter = function( r, settings ) {
}
var delAfter = function( r, settings ) {
$('.comment-count').each( function() {
$('.comment-count span').each( function() {
var a = $(this);
if ( a.parent('.current').size() || $('#' + settings.element).is('.unapproved') && parseInt(a.html(),10) > 0 ) {
var n = parseInt(a.html(),10) - 1;