From d9abe4ea3098cc693616e26c358967c63498b119 Mon Sep 17 00:00:00 2001 From: James Anderson Date: Wed, 31 Oct 2018 16:47:20 -0400 Subject: [PATCH] Fix comment box not showing on PR commit replies Fixes #5237 --- public/js/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/js/index.js b/public/js/index.js index 0bc28c4f9654f..15a6035ec3b1b 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;