diff --git a/app/assets/javascripts/app/views/single-post-viewer/single_post_actions.js b/app/assets/javascripts/app/views/single-post-viewer/single_post_actions.js index d59e52809..7e066389c 100644 --- a/app/assets/javascripts/app/views/single-post-viewer/single_post_actions.js +++ b/app/assets/javascripts/app/views/single-post-viewer/single_post_actions.js @@ -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; }