fixed comment socket bug on posts where there are no new comment areas

This commit is contained in:
danielgrippi 2011-03-23 17:55:18 -07:00
parent b6d5165f2d
commit 2a1914a8f2

View file

@ -96,7 +96,7 @@ var WebSocketReceiver = {
if( $(".comment[data-guid='"+commentId+"']").length == 0 ) {
var post = $("*[data-guid='"+postId+"']'");
$('.comments li:last', post ).before(
$('.comment.posted', post).last().after(
$(html).fadeIn("fast", function(){})
);
var toggler = $('.show_post_comments', post);