diff --git a/javascript/CommentsInterface.js b/javascript/CommentsInterface.js index 1b2bef6..53dd074 100755 --- a/javascript/CommentsInterface.js +++ b/javascript/CommentsInterface.js @@ -159,6 +159,9 @@ commentsList.hide().html(html.find('.comments-list:first').html()).fadeIn(); pagination.hide().html(html.find('.comments-pagination:first').html()).fadeIn(); commentsList.removeClass('loading'); + $('html, body').animate({ + scrollTop: commentsList.offset().top - 30 + }, 200); }, failure: function(html) { alert('Error loading comments');