diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2022-01-16 19:19:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-16 11:19:26 +0000 |
commit | 4d0a72a2710fd3381574485980f056ac644a10d7 (patch) | |
tree | f22868107e8e7dff2ab638ef366477d4efdc5fe3 /web_src/js/features/repo-issue.js | |
parent | 72b36816481a6af1cf3fc1bc4e27b96b8a2779ef (diff) | |
download | gitea-4d0a72a2710fd3381574485980f056ac644a10d7.tar.gz gitea-4d0a72a2710fd3381574485980f056ac644a10d7.zip |
Revert "Prevent possible XSS when using jQuery (#18289)" (#18293)
This reverts commit 661d3d28e97bb49bef075c0314edad5879148aaa.
Diffstat (limited to 'web_src/js/features/repo-issue.js')
-rw-r--r-- | web_src/js/features/repo-issue.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web_src/js/features/repo-issue.js b/web_src/js/features/repo-issue.js index b062c44675..6e57facfd2 100644 --- a/web_src/js/features/repo-issue.js +++ b/web_src/js/features/repo-issue.js @@ -28,7 +28,7 @@ export function initRepoIssueTimeTracking() { }); $(document).on('click', 'button.issue-delete-time', function () { const sel = `.issue-delete-time-modal[data-id="${$(this).data('id')}"]`; - $.find(sel).modal({ + $(sel).modal({ duration: 200, onApprove() { $(`${sel} form`).trigger('submit'); @@ -535,7 +535,7 @@ export function initRepoIssueReferenceIssue() { const content = $(`#comment-${$this.data('target')}`).text(); const poster = $this.data('poster-username'); const reference = $this.data('reference'); - const $modal = $.find($this.data('modal')); + const $modal = $($this.data('modal')); $modal.find('textarea[name="content"]').val(`${content}\n\n_Originally posted by @${poster} in ${reference}_`); $modal.modal('show'); |