fix weird bug with comment_box focus

This commit is contained in:
Steffen van Bergerem 2013-08-20 00:47:45 +02:00 committed by Roger Braun
parent 328fb7113f
commit 0de0d8855c

View file

@ -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;
}