replace in comment websocket action replaces one or more number instead of just the first
This commit is contained in:
parent
c133233155
commit
897074c869
1 changed files with 2 additions and 1 deletions
|
|
@ -46,8 +46,9 @@
|
|||
$(html).fadeIn("fast", function(){})
|
||||
);
|
||||
toggler = $('.show_post_comments', post)
|
||||
|
||||
toggler.html(
|
||||
toggler.html().replace(/\d/,$('.comment_set', post)[0].childElementCount -1));
|
||||
toggler.html().replace(/\d+/,$('.comment_set', post)[0].childElementCount -1));
|
||||
|
||||
if( !$(".comments", post).is(':visible') ){
|
||||
toggler.click();
|
||||
|
|
|
|||
Loading…
Reference in a new issue