mirror of https://github.com/go-gitea/gitea.git
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> |
2 years ago | |
---|---|---|
.. | ||
webhook | 2 years ago | |
actions.tmpl | 2 years ago | |
branches.tmpl | 2 years ago | |
collaboration.tmpl | 2 years ago | |
deploy_keys.tmpl | 2 years ago | |
githook_edit.tmpl | 2 years ago | |
githooks.tmpl | 2 years ago | |
layout_footer.tmpl | 2 years ago | |
layout_head.tmpl | 2 years ago | |
lfs.tmpl | 2 years ago | |
lfs_file.tmpl | 2 years ago | |
lfs_file_find.tmpl | 2 years ago | |
lfs_locks.tmpl | 2 years ago | |
lfs_pointers.tmpl | 2 years ago | |
nav.tmpl | 2 years ago | |
navbar.tmpl | 2 years ago | |
options.tmpl | 2 years ago | |
protected_branch.tmpl | 2 years ago | |
runner_edit.tmpl | 2 years ago | |
secrets.tmpl | 2 years ago | |
tags.tmpl | 2 years ago |