Skip to content

Commit 92c8df2

Browse files
committed
Issues-491: set the scroll animation settings as in quotes plugin
1 parent f98cce3 commit 92c8df2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ReplyTo/js/replyto.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jQuery(document).ready(function($) {
77
//If view is not flat, reload a page to rebuild a tree
88
function reloadPage() {
99
var currentView = param(window.location.href, 'view');
10-
return (currentView == 'tree' || currentView == 'threaded');
10+
return currentView == 'threaded';
1111
}
1212

1313
$(document).on('click','a.ReplyComment', function(ev) {
@@ -48,7 +48,9 @@ jQuery(document).ready(function($) {
4848
} else {
4949
$(cancelReplyButton).show();
5050
}
51-
$(form)[0].scrollIntoView();
51+
52+
var ScrollY = $(form).offset().top - 100;
53+
$('html,body').animate({scrollTop: ScrollY}, 800);
5254
return false;
5355
});
5456

0 commit comments

Comments
 (0)