aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-02-18 14:40:41 +0100
committerMario Vavti <mario@mariovavti.com>2019-02-18 14:40:41 +0100
commit48f2c85791e20f4400853f726793ac965ae8ea1b (patch)
tree137770818171bac5aa1d6e4a36dee20f235fd039
parentb5109d2a1ae6056ec845c66ad89ccb02b4de0a05 (diff)
downloadvolse-hubzilla-48f2c85791e20f4400853f726793ac965ae8ea1b.tar.gz
volse-hubzilla-48f2c85791e20f4400853f726793ac965ae8ea1b.tar.bz2
volse-hubzilla-48f2c85791e20f4400853f726793ac965ae8ea1b.zip
prevent page jumping on like if comments are expanded (show all x comments)
-rw-r--r--view/js/main.js4
1 files changed, 2 insertions, 2 deletions
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();
}