diff --git a/public/js/index.js b/public/js/index.js index 4034853f03e..3560686c26c 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -788,6 +788,9 @@ function initPullRequestReview() { $('.btn-review').on('click', function(e) { e.preventDefault(); $(this).closest('.dropdown').find('.menu').toggle('visible'); + }).closest('.dropdown').find('.link.close').on('click', function(e) { + e.preventDefault(); + $(this).closest('.menu').toggle('visible'); }); $('.code-view .lines-code,.code-view .lines-num') diff --git a/templates/repo/diff/comment_form.tmpl b/templates/repo/diff/comment_form.tmpl index 4e6d44220ae..9b7397ecb14 100644 --- a/templates/repo/diff/comment_form.tmpl +++ b/templates/repo/diff/comment_form.tmpl @@ -27,9 +27,9 @@ {{else}} + {{end}} - diff --git a/templates/repo/diff/comments.tmpl b/templates/repo/diff/comments.tmpl index 1c6d2460135..18221e36ed3 100644 --- a/templates/repo/diff/comments.tmpl +++ b/templates/repo/diff/comments.tmpl @@ -32,7 +32,7 @@