From 48f2c85791e20f4400853f726793ac965ae8ea1b Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Mon, 18 Feb 2019 14:40:41 +0100 Subject: prevent page jumping on like if comments are expanded (show all x comments) --- view/js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'view/js') diff --git a/view/js/main.js b/view/js/main.js index 4718fb98f..4e4431f33 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -400,12 +400,12 @@ function viewsrc(id) { function showHideComments(id) { if( $('#collapsed-comments-' + id).is(':visible')) { $('#collapsed-comments-' + id + ' .autotime').timeago('dispose'); - $('#collapsed-comments-' + id).slideUp(); + $('#collapsed-comments-' + id).hide(); $('#hide-comments-' + id).html(aStr.showmore); $('#hide-comments-total-' + id).show(); } else { $('#collapsed-comments-' + id + ' .autotime').timeago(); - $('#collapsed-comments-' + id).slideDown(); + $('#collapsed-comments-' + id).show(); $('#hide-comments-' + id).html(aStr.showfewer); $('#hide-comments-total-' + id).hide(); } -- cgit v1.2.3