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-diff.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-diff.js')
-rw-r--r-- | web_src/js/features/repo-diff.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/features/repo-diff.js b/web_src/js/features/repo-diff.js index 4f16133b5f..3d937bbdb1 100644 --- a/web_src/js/features/repo-diff.js +++ b/web_src/js/features/repo-diff.js @@ -15,7 +15,7 @@ export function initRepoDiffFileViewToggle() { $this.parent().children().removeClass('active'); $this.addClass('active'); - const $target = $.find($this.data('toggle-selector')); + const $target = $($this.data('toggle-selector')); $target.parent().children().addClass('hide'); $target.removeClass('hide'); }); |