fix weird bug with comment_box focus
This commit is contained in:
parent
328fb7113f
commit
0de0d8855c
1 changed files with 2 additions and 2 deletions
|
|
@ -14,8 +14,8 @@ app.views.SinglePostActions = app.views.Feedback.extend({
|
|||
},
|
||||
|
||||
focusComment: function() {
|
||||
$('.comment_box').focus();
|
||||
$('html,body').animate({scrollTop: $('.comment_box').offset().top - ($('.comment_box').height() + 20)});
|
||||
$('.comment_stream .comment_box').focus();
|
||||
$('html,body').animate({scrollTop: $('.comment_stream .comment_box').offset().top - ($('.comment_stream .comment_box').height() + 20)});
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue