You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Xinyu Zhou 26f941fbda
Fix button in branch list, avoid unexpected page jump before restore branch actually done (#21562)
This patch:
- Use `<button>` replace anchor link `<a>` in **_Delete/Restore
Branch_** button to avoid unexpected page jump before restore branch
actually done.
- Also replace right side buttons with `<button>` in branch list, let
some screen readers know they are buttons.


## Before
click restore branch -> restore triggered -> page refreshed, but branch
status not update -> manually refresh page

<details>


https://user-images.githubusercontent.com/76462613/197389108-5a0bd259-0455-40b2-92ac-4326900276f8.mp4

</details>

## After
waiting restore done -> page refresh -> branch status update

<details>


https://user-images.githubusercontent.com/76462613/197428683-616fcbd2-70f9-4572-bf76-e0b7f77b6dd7.mp4

</details>

Signed-off-by: baronbunny <its@baronbunny.cn>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
2 years ago
..
branch Fix button in branch list, avoid unexpected page jump before restore branch actually done (#21562) 2 years ago
cite Copy citation file content, in APA and BibTex format, on repo home page (#19999) 2 years ago
diff Timeline and color tweaks (#21799) 2 years ago
editor Make sure fmt catches all templates (#20979) 2 years ago
find Refactor `i18n` to `locale` (#20153) 2 years ago
graph Make sure fmt catches all templates (#20979) 2 years ago
issue feat: add button to quickly clear merge message (#21548) 2 years ago
migrate Make sure fmt catches all templates (#20979) 2 years ago
projects Make sure fmt catches all templates (#20979) 2 years ago
pulls fix: PR status layout on mobile (#21547) 2 years ago
release Tag list should include draft releases with existing tags (#21263) 2 years ago
settings Fix table misalignments and tweak webhook and githook lists (#21917) 2 years ago
wiki Webhook for Wiki changes (#20219) 2 years ago
activity.tmpl Respect user's locale when rendering the date range in the repo activity page (#21410) 2 years ago
blame.tmpl Show syntax lexer name in file view/blame (#21814) 2 years ago
branch_dropdown.tmpl Fix branch dropdown shifting on page load (#21428) 2 years ago
clone_buttons.tmpl Rework repo buttons (#20602) 2 years ago
clone_script.tmpl Make the vscode clone link respect transport protocol (#20557) 2 years ago
commit_page.tmpl Added space between avatar and username (#21825) 2 years ago
commit_status.tmpl Change commit status icons to SVG (#20736) 2 years ago
commit_statuses.tmpl Improve commit status icons (#21124) 2 years ago
commits.tmpl Rework repo buttons (#20602) 2 years ago
commits_list.tmpl Change `commits-table` column width (#21564) 2 years ago
commits_list_small.tmpl Add whitespace removal inside template curly brackes (#20853) 2 years ago
commits_table.tmpl Add whitespace removal inside template curly brackes (#20853) 2 years ago
create.tmpl Remove cancel button in repo creation page (#21381) 2 years ago
empty.tmpl Add default value for clone URLs (#20600) 2 years ago
file_info.tmpl Show syntax lexer name in file view/blame (#21814) 2 years ago
forks.tmpl Add whitespace removal inside template curly brackes (#20853) 2 years ago
graph.tmpl Add whitespace removal inside template curly brackes (#20853) 2 years ago
header.tmpl Allow disable RSS/Atom feed (#21622) 2 years ago
home.tmpl Remove `href="javascript:;"` in "save topics (Done)" button (#21813) 2 years ago
icon.tmpl Do not display org avatar near icon for internal repos (#13957) 4 years ago
packages.tmpl Add Package Registry (#16510) 2 years ago
search.tmpl Add user/organization code search (#19977) 2 years ago
shabox_badge.tmpl Refactor `i18n` to `locale` (#20153) 2 years ago
sub_menu.tmpl Render number of commits in repo page in a user friendly way (#21786) 2 years ago
unicode_escape_prompt.tmpl Switch Unicode Escaping to a VSCode-like system (#19990) 2 years ago
upload.tmpl Refactor `i18n` to `locale` (#20153) 2 years ago
user_cards.tmpl Localize all timestamps (#21440) 2 years ago
view_file.tmpl Improvements for Content Copy (#21842) 2 years ago
view_list.tmpl Add whitespace removal inside template curly brackes (#20853) 2 years ago
watchers.tmpl Add class to page content to unify top margin (#13766) 4 years ago