summaryrefslogtreecommitdiffstats
path: root/web_src/js/features/repo-issue.js
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2022-01-16 19:19:26 +0800
committerGitHub <noreply@github.com>2022-01-16 11:19:26 +0000
commit4d0a72a2710fd3381574485980f056ac644a10d7 (patch)
treef22868107e8e7dff2ab638ef366477d4efdc5fe3 /web_src/js/features/repo-issue.js
parent72b36816481a6af1cf3fc1bc4e27b96b8a2779ef (diff)
downloadgitea-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.js4
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');