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 ) {
|
if( $(".comment[data-guid='"+commentId+"']").length == 0 ) {
|
||||||
|
|
||||||
var post = $("*[data-guid='"+postId+"']'");
|
var post = $("*[data-guid='"+postId+"']'"),
|
||||||
$('.comment.posted', post).last().after(
|
prevComments = $('.comment.posted', post);
|
||||||
|
|
||||||
|
|
||||||
|
if(prevComments.length > 0) {
|
||||||
|
prevComments.last().after(
|
||||||
$(html).fadeIn("fast", function(){})
|
$(html).fadeIn("fast", function(){})
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
$('.comments li:last', post).before(
|
||||||
|
$(html).fadeIn("fast", function(){})
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
var toggler = $('.show_post_comments', post);
|
var toggler = $('.show_post_comments', post);
|
||||||
|
|
||||||
if(toggler.length > 0){
|
if(toggler.length > 0){
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue