aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/features/comp/LabelEdit.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/comp/LabelEdit.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/comp/LabelEdit.js')
-rw-r--r--web_src/js/features/comp/LabelEdit.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/features/comp/LabelEdit.js b/web_src/js/features/comp/LabelEdit.js
index 7c31080be8..7d71e6effa 100644
--- a/web_src/js/features/comp/LabelEdit.js
+++ b/web_src/js/features/comp/LabelEdit.js
@@ -1,7 +1,7 @@
import {initCompColorPicker} from './ColorPicker.js';
export function initCompLabelEdit(selector) {
- if (!$.find(selector).length) return;
+ if (!$(selector).length) return;
// Create label
const $newLabelPanel = $('.new-label.segment');
$('.new-label.button').on('click', () => {