summaryrefslogtreecommitdiffstats
path: root/web_src/js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js')
-rw-r--r--web_src/js/index.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js
index 2cb928b203..496495a1cd 100644
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -1262,11 +1262,10 @@ 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');
- });
+ }).closest('.dropdown').find('.close').on('click', function (e) {
+ e.preventDefault();
+ $(this).closest('.menu').toggle('visible');
+ });
$('.add-code-comment').on('click', function (e) {
if ($(e.target).hasClass('btn-add-single')) return; // https://github.com/go-gitea/gitea/issues/4745