Do not mangle href in the show/hide comment toggle link when posting new comment.

This commit is contained in:
Andrej Kacian 2011-08-15 01:39:55 +02:00
parent 3f1e8f0b6e
commit b7b20b241f

View file

@ -108,12 +108,7 @@ var WebSocketReceiver = {
);
}
var toggler = $('.toggle_post_comments', post).parent();
if(toggler.length > 0){
toggler.html(
toggler.html().replace(/\d+/,$('.comments', post).find('li').length)
);
var toggler = $('.toggle_post_comments', post);
if( !$(".comments", post).is(':visible') ) {
toggler.click();