diff --git a/public/js/index.js b/public/js/index.js index f5d3ef2d93d71..b1a42c8e1466c 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -783,10 +783,11 @@ function initPullRequestReview() { $('button.comment-form-reply').on('click', function (e) { e.preventDefault(); $(this).hide(); - var form = $(this).parent().find('.comment-form') + var form = $(this).parent().parent().find('.comment-form'); form.removeClass('hide'); assingMenuAttributes(form.find('.menu')); }); + // The following part is only for diff views if ($('.repository.pull.diff').length == 0) { return;