diff options
author | Mario Vavti <mario@mariovavti.com> | 2015-04-08 08:53:28 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2015-04-08 08:53:28 +0200 |
commit | 549bcf5a723ea0d64954f3ba174cf024f3162cb6 (patch) | |
tree | e3d37d24197b8bd2d13271b6e7495caa589da64c | |
parent | b212482330e2b8baca9b5eaddcdaacdb6cca1b15 (diff) | |
download | volse-hubzilla-549bcf5a723ea0d64954f3ba174cf024f3162cb6.tar.gz volse-hubzilla-549bcf5a723ea0d64954f3ba174cf024f3162cb6.tar.bz2 volse-hubzilla-549bcf5a723ea0d64954f3ba174cf024f3162cb6.zip |
this is easier on the eyes when collapsing a long post/comment
-rw-r--r-- | view/js/main.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/view/js/main.js b/view/js/main.js index b9fb9f85e..552dd959e 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -620,13 +620,14 @@ function collapseHeight() { if(orgHeight > divmore_height + 10) { if(! $(this).hasClass('divmore')) { $(this).readmore({ + speed: 0, collapsedHeight: divmore_height, moreLink: '<a href="#" class="divgrow-showmore">' + aStr.divgrowmore + '</a>', lessLink: '<a href="#" class="divgrow-showmore">' + aStr.divgrowless + '</a>', beforeToggle: function(trigger, element, expanded) { if(expanded) { if((($(element).offset().top + divmore_height) - $(window).scrollTop()) < 65 ) { - $('html, body').animate( { scrollTop: $(window).scrollTop() - (orgHeight - divmore_height) }, {duration: 100 } ); + $('html, body').animate( { scrollTop: $(window).scrollTop() - (orgHeight - divmore_height) }, {duration: 0 } ); } } } |