From 549bcf5a723ea0d64954f3ba174cf024f3162cb6 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 8 Apr 2015 08:53:28 +0200 Subject: this is easier on the eyes when collapsing a long post/comment --- view/js/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'view') 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: '' + aStr.divgrowmore + '', lessLink: '' + aStr.divgrowless + '', 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 } ); } } } -- cgit v1.2.3