forgejo/templates/shared
Gusted d0a6f93f9e fix: avoid jumping to begin of page on edit comment action (#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

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/9645
Reviewed-by: Beowulf <beowulf@beocode.eu>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-10-13 17:46:35 +02:00
..
actions feat: require data-modal-id for delete buttons (#8711) 2025-08-08 01:53:23 +02:00
search feat(issue search): query string for boolean operators and phrase search (#6952) 2025-02-23 08:35:35 +00:00
secrets
user feat(ui): JSfree sorting on /explore/{users,organizations} (#9556) 2025-10-09 14:33:33 +02:00
variables
webhook Added alt's to <img> 2025-01-31 21:22:00 +00:00
blocked_users_list.tmpl fix: use DateUtils for blocked users list 2024-12-30 10:58:24 +01:00
combomarkdowneditor.tmpl fix: avoid jumping to begin of page on edit comment action (#9645) 2025-10-13 17:46:35 +02:00
issueicon.tmpl
issuelist.tmpl chore: move template context (#8663) 2025-07-25 11:55:15 +02:00
label_filter.tmpl chore: move template context (#8663) 2025-07-25 11:55:15 +02:00
quota_overview.tmpl feat(ui): add legends to storage overview (#9429) 2025-09-28 10:35:07 +02:00
repo_search.tmpl
searchbottom.tmpl
searchfile.tmpl