comment numbers update uncleanly

This commit is contained in:
Raphael 2010-07-06 12:38:24 -07:00
parent 76c9877316
commit 7bdf52e173

View file

@ -35,9 +35,12 @@
} }
function processComment(post_id, html){ function processComment(post_id, html){
$('#'+ post_id + ' .comment_set li:last' ).before( post = $('#' + post_id)[0]
$(' .comment_set li:last', post ).before(
$(html).fadeIn("fast", function(){}) $(html).fadeIn("fast", function(){})
); );
$('.show_post_comments', post).html(
$('.show_post_comments', post).html().replace(/\d/,$('.comment_set', post)[0].childElementCount -1));
} }
function processPost(className, html){ function processPost(className, html){