diff --git a/rhodecode/public/js/src/rhodecode.js b/rhodecode/public/js/src/rhodecode.js --- a/rhodecode/public/js/src/rhodecode.js +++ b/rhodecode/public/js/src/rhodecode.js @@ -618,7 +618,7 @@ function scrollToElement(element, percen offsetScroll($line, 70); } if (!$line.hasClass('comment-outdated') && result.remainder === '/ReplyToComment') { - $line.nextAll('.cb-comment-add-button').trigger('click'); + $line.parent().find('.cb-comment-add-button').trigger('click'); } }