diff options
author | M. Dent <dentm42@gmail.com> | 2019-02-19 01:24:35 +0100 |
---|---|---|
committer | M. Dent <dentm42@gmail.com> | 2019-02-19 01:24:35 +0100 |
commit | c8ab2bec5e3b836e3f152beb915bb95273c63ba5 (patch) | |
tree | dd036c25d069b8d2196ba40ff8103281b8dc7c9b | |
parent | 136d50a7c59f8b38b8923940c0f1e556f1cdad6f (diff) | |
parent | 48f2c85791e20f4400853f726793ac965ae8ea1b (diff) | |
download | volse-hubzilla-c8ab2bec5e3b836e3f152beb915bb95273c63ba5.tar.gz volse-hubzilla-c8ab2bec5e3b836e3f152beb915bb95273c63ba5.tar.bz2 volse-hubzilla-c8ab2bec5e3b836e3f152beb915bb95273c63ba5.zip |
Merge branch 'js_fixes' into 'dev'
prevent page jumping on like if comments are expanded (show all x comments)
See merge request hubzilla/core!1520
-rw-r--r-- | view/js/main.js | 4 |
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(); } |