0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 20:44:36 +01:00
gitea/web_src/css
wxiaoguang 6bbccdd177
Improve AJAX link and modal confirm dialog (#25210)
Clarify the "link-action" behavior:

>  // A "link-action" can post AJAX request to its "data-url"
> // Then the browser is redirect to: the "redirect" in response, or
"data-redirect" attribute, or current URL by reloading.

And enhance the "link-action" to support showing a modal dialog for
confirm. A similar general approach could also help PRs like
https://github.com/go-gitea/gitea/pull/22344#discussion_r1062883436

> // If the "link-action" has "data-modal-confirm(-html)" attribute, a
confirm modal dialog will be shown before taking action.


And a lot of duplicate code can be removed now. A good framework design
can help to avoid code copying&pasting.

---------

Co-authored-by: silverwind <me@silverwind.io>
2023-06-13 12:10:10 +00:00
..
chroma
codemirror
editor Rework button coloring, add focus and active colors (#24507) 2023-05-29 12:45:22 +00:00
features
markup
modules Change access token UI to select dropdowns (#25109) 2023-06-13 15:55:48 +08:00
repo Fix mobile navbar and misc cleanups (#25134) 2023-06-09 09:10:51 +00:00
shared Button and color enhancements (#24989) 2023-06-09 08:37:47 +00:00
standalone Add dark mode to API Docs (#24971) 2023-05-28 21:37:34 +00:00
themes Minor arc-green color tweaks (#25175) 2023-06-09 15:17:30 +00:00
actions.css
admin.css Fix mobile navbar and misc cleanups (#25134) 2023-06-09 09:10:51 +00:00
base.css Remove hacky patch for "safari emoji glitch fix" (#25208) 2023-06-12 15:44:53 +00:00
dashboard.css Fix mobile navbar and misc cleanups (#25134) 2023-06-09 09:10:51 +00:00
explore.css Improve notification icon and navbar (#25111) 2023-06-07 22:21:57 +00:00
font_i18n.css Fix @font-face overrides (#24855) 2023-05-24 01:48:51 +00:00
form.css Fix mobile navbar and misc cleanups (#25134) 2023-06-09 09:10:51 +00:00
helpers.css Fix mobile navbar and misc cleanups (#25134) 2023-06-09 09:10:51 +00:00
home.css Fix mobile navbar and misc cleanups (#25134) 2023-06-09 09:10:51 +00:00
index.css Change access token UI to select dropdowns (#25109) 2023-06-13 15:55:48 +08:00
install.css
org.css Improve AJAX link and modal confirm dialog (#25210) 2023-06-13 12:10:10 +00:00
repo.css Fix mobile navbar and misc cleanups (#25134) 2023-06-09 09:10:51 +00:00
review.css Fix mobile navbar and misc cleanups (#25134) 2023-06-09 09:10:51 +00:00
user.css Fix mobile navbar and misc cleanups (#25134) 2023-06-09 09:10:51 +00:00