jojo/web_src/js
Gusted 3709bef53b [v12.0/forgejo] fix: avoid jumping to begin of page on edit comment action (#9645) (#9671)
**Backport: forgejo/forgejo#9645**

When you edit a comment and the comment already has a markdown editor,
then the code will click on the 'Write' tab, in case you canceled
editting the comment when you were at the 'Preview' tab. In
forgejo/forgejo#2681 I added `href="#"` to the tab items, this causes
that when the 'Write' tab is being clicked by the code the page is
jumped the beginning of the page.

Instead of being clever and trying to make this item interactive via
another way or via javascript avoid this jumping, we do better and make
this element a button. This item is not a link, it's a button that will
perform a action. This entirely avoids the issue of jumping and it's
still interactive.

Resolves forgejo/forgejo#9542

----

Conflict resolution: trivial
(cherry picked from commit d0a6f93f9e)

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/9671
Reviewed-by: 0ko <0ko@noreply.codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-10-13 19:49:44 +02:00
..
components [v12.0/forgejo] fix: compare week as numbers and not as strings (#8887) 2025-08-13 23:06:30 +02:00
features [v12.0/forgejo] fix: avoid jumping to begin of page on edit comment action (#9645) (#9671) 2025-10-13 19:49:44 +02:00
markup chore: Update katex import path 2024-12-18 01:17:23 +01:00
modules feat(ui): redesign user profile actions layout (#7906) 2025-06-24 14:16:51 +02:00
render add model viewer for .glb (GLTF) model in file view (#8111) 2025-06-21 14:42:35 +02:00
standalone [CHORE] Proper chunking for swagger 2024-08-22 15:48:05 +02:00
utils Update dependency eslint-plugin-unicorn to v57 (forgejo) (#7181) 2025-03-09 20:49:49 +00:00
vendor Vendor jquery.are-you-sure with strict mode fixes (#26901) 2023-09-06 00:02:44 +00:00
webcomponents Make relative-time a self-maintaining custom element (#8134) 2025-06-10 20:12:21 +02:00
bootstrap.js Suppress Monaco JavaScript errors in Safari (#3805) 2024-05-18 21:07:09 +00:00
bootstrap.test.js Avoid duplicate JS error messages on UI (#28873) 2024-01-21 14:23:08 +00:00
htmx.js Auto-update the system status in admin dashboard (#29163) 2024-02-17 23:24:31 +01:00
index.js [v12.0/forgejo] fix(ui): clear fields when canceling adding ssh key (#9112) 2025-09-02 08:00:46 +02:00
jquery.js Forbid variables containing jQuery collections not having the $ prefix (#29839) 2024-03-20 08:46:30 +01:00
svg.js Reimplement editor Tab handling with accessibility safeguards (#6813) 2025-05-25 19:17:03 +02:00
svg.test.js Remove "class-name" from svg icon (#33540) 2025-02-25 12:56:30 +01:00
utils.js chore: add new lint rules 2024-10-23 08:10:18 +02:00
utils.test.js [v12.0/forgejo] chore(ci): testSleep: show actual times on failures (#8277) 2025-06-25 16:43:06 +02:00
vitest.setup.js [v12.0/forgejo] fix: compare week as numbers and not as strings (#8887) 2025-08-13 23:06:30 +02:00