fix cucumber, comments
This commit is contained in:
parent
2a1914a8f2
commit
33c013633f
1 changed files with 14 additions and 4 deletions
|
|
@ -95,10 +95,20 @@ var WebSocketReceiver = {
|
|||
|
||||
if( $(".comment[data-guid='"+commentId+"']").length == 0 ) {
|
||||
|
||||
var post = $("*[data-guid='"+postId+"']'");
|
||||
$('.comment.posted', post).last().after(
|
||||
$(html).fadeIn("fast", function(){})
|
||||
);
|
||||
var post = $("*[data-guid='"+postId+"']'"),
|
||||
prevComments = $('.comment.posted', post);
|
||||
|
||||
|
||||
if(prevComments.length > 0) {
|
||||
prevComments.last().after(
|
||||
$(html).fadeIn("fast", function(){})
|
||||
);
|
||||
} else {
|
||||
$('.comments li:last', post).before(
|
||||
$(html).fadeIn("fast", function(){})
|
||||
);
|
||||
}
|
||||
|
||||
var toggler = $('.show_post_comments', post);
|
||||
|
||||
if(toggler.length > 0){
|
||||
|
|
|
|||
Loading…
Reference in a new issue