summaryrefslogtreecommitdiffstats
path: root/web_src/js/features/repo-code.js
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-05-09 04:35:49 +0200
committerGitHub <noreply@github.com>2023-05-09 02:35:49 +0000
commitd5b2bf9044caad9fb473312c4816f6c6caad4698 (patch)
treef6f9d829e86a122bd49ae7268204e680d9088c7e /web_src/js/features/repo-code.js
parent1dd83dbb917d55bd253001646d6743f247a4d98b (diff)
downloadgitea-d5b2bf9044caad9fb473312c4816f6c6caad4698.tar.gz
gitea-d5b2bf9044caad9fb473312c4816f6c6caad4698.zip
Update JS dependencies, add new eslint rules (#24597)
- Update all JS dependencies - Enable new eslint rules, fix issue (some via autofix) - Fix some missed eslint rule renames from [unicorn v25](https://github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v25.0.0) - Tested Monaco, Katex, Swagger UI --------- Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'web_src/js/features/repo-code.js')
-rw-r--r--web_src/js/features/repo-code.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/features/repo-code.js b/web_src/js/features/repo-code.js
index c0dced44eb..9b504068f6 100644
--- a/web_src/js/features/repo-code.js
+++ b/web_src/js/features/repo-code.js
@@ -104,7 +104,7 @@ function showLineButton() {
td.prepend(btn);
// put a copy of the menu back into DOM for the next click
- btn.closest('.code-view').appendChild(menu.cloneNode(true));
+ btn.closest('.code-view').append(menu.cloneNode(true));
createTippy(btn, {
trigger: 'click',