diff --git a/public/js/index.js b/public/js/index.js index 4034853f03..3560686c26 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 4e6d44220a..9b7397ecb1 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 1c6d246013..18221e36ed 100644 --- a/templates/repo/diff/comments.tmpl +++ b/templates/repo/diff/comments.tmpl @@ -32,7 +32,7 @@