Do not mangle href in the show/hide comment toggle link when posting new comment.
This commit is contained in:
parent
3f1e8f0b6e
commit
b7b20b241f
1 changed files with 1 additions and 6 deletions
|
|
@ -108,12 +108,7 @@ var WebSocketReceiver = {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
var toggler = $('.toggle_post_comments', post).parent();
|
var toggler = $('.toggle_post_comments', post);
|
||||||
|
|
||||||
if(toggler.length > 0){
|
|
||||||
toggler.html(
|
|
||||||
toggler.html().replace(/\d+/,$('.comments', post).find('li').length)
|
|
||||||
);
|
|
||||||
|
|
||||||
if( !$(".comments", post).is(':visible') ) {
|
if( !$(".comments", post).is(':visible') ) {
|
||||||
toggler.click();
|
toggler.click();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue