diff options
author | silverwind <me@silverwind.io> | 2023-06-11 04:54:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-11 02:54:30 +0000 |
commit | 224ee0d4e539510b82125876684e9f9c5fde0dfb (patch) | |
tree | fe435eb148f9460a47dce60878496369783046ce /web_src | |
parent | ee26d1c57866930e88bd9467c91764d0bb4db9dd (diff) | |
download | gitea-224ee0d4e539510b82125876684e9f9c5fde0dfb.tar.gz gitea-224ee0d4e539510b82125876684e9f9c5fde0dfb.zip |
Fix strange UI behavior of cancelling dismiss review modal (#25172)
Backport clean cherry-picks of
https://github.com/go-gitea/gitea/pull/25133 and
https://github.com/go-gitea/gitea/pull/25162 to 1.20.
Diffstat (limited to 'web_src')
-rw-r--r-- | web_src/js/features/repo-issue.js | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/web_src/js/features/repo-issue.js b/web_src/js/features/repo-issue.js index 71d82325ac..0dc5728f58 100644 --- a/web_src/js/features/repo-issue.js +++ b/web_src/js/features/repo-issue.js @@ -358,13 +358,6 @@ export function initRepoIssueComments() { ).then(() => window.location.reload()); }); - $('.dismiss-review-btn').on('click', function (e) { - e.preventDefault(); - const $this = $(this); - const $dismissReviewModal = $this.next(); - $dismissReviewModal.modal('show'); - }); - $(document).on('click', (event) => { const urlTarget = $(':target'); if (urlTarget.length === 0) return; |