Actually scroll to the comment box.
This commit is contained in:
parent
867efeb80f
commit
059521b0aa
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ app.views.SinglePostActions = app.views.Feedback.extend({
|
||||||
|
|
||||||
focusComment: function() {
|
focusComment: function() {
|
||||||
$('.comment_box').focus();
|
$('.comment_box').focus();
|
||||||
$("html, body").animate({ scrollTop: $(document).height()-$(window).height() }); // Go to the bottom.
|
$('html,body').animate({scrollTop: $('.comment_box').offset().top - ($('.comment_box').height() + 20)});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue