aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/index.js
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2024-06-10 12:12:31 +0200
committerGitHub <noreply@github.com>2024-06-10 18:12:31 +0800
commita2304cb163ce5e097078e71f49d4d5cb4c8b20d9 (patch)
tree82527837cf93b3eba088c4a89df8ef4e19efe96e /web_src/js/index.js
parent4f7d6feab7e6cb6e8c5914a5b6cd20a64fd49c29 (diff)
downloadgitea-a2304cb163ce5e097078e71f49d4d5cb4c8b20d9.tar.gz
gitea-a2304cb163ce5e097078e71f49d4d5cb4c8b20d9.zip
Remove jQuery `.text()` (#30506)
Remove and forbid [.text()](https://api.jquery.com/text/). Tested some, but not all functionality, but I think these are pretty safe replacements. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'web_src/js/index.js')
-rw-r--r--web_src/js/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js
index 1867556eee..12cd0ee15a 100644
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -43,7 +43,7 @@ import {
initGlobalDropzone,
initGlobalEnterQuickSubmit,
initGlobalFormDirtyLeaveConfirm,
- initGlobalLinkActions,
+ initGlobalDeleteButton,
initHeadNavbarContentToggle,
} from './features/common-global.js';
import {initRepoTopicBar} from './features/repo-home.js';
@@ -103,7 +103,7 @@ onDomReady(() => {
initGlobalDropzone();
initGlobalEnterQuickSubmit();
initGlobalFormDirtyLeaveConfirm();
- initGlobalLinkActions();
+ initGlobalDeleteButton();
initCommonOrganization();
initCommonIssueListQuickGoto();