forked from forgejo/forgejo
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.
This commit is contained in:
parent
ee26d1c578
commit
224ee0d4e5
2 changed files with 2 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue