mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-26 06:16:56 +09:00
Replace Fomantic's hard-forked jQuery modal with native `<dialog>` elements, advancing https://github.com/go-gitea/gitea/issues/29849. The UI is visually unchanged. Dialogs open with `show()` over an `inert` page, so tooltips, popups and toasts mounted on `<body>` stay usable above them, unlike with `showModal()` (https://github.com/whatwg/html/issues/9936). - Remove the Fomantic modal and dimmer, add `showModal` and `hideModal` - Declare modals as `<dialog class="modal-dialog">`, shown inside a `.modal-backdrop`, instead of `ui modal` with its unused size classes - Remove two modals that could never be opened - Block the page while a modal is open, close the topmost one on Escape and restore focus to its opener - Allow stacked modals, use a confirm modal instead of `window.confirm` for deleting content history - Hide popups and toasts when a modal opens or closes - Keep the release notes modal open when generating notes fails Fixes: https://github.com/go-gitea/gitea/issues/39643 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
23 lines
829 B
Handlebars
23 lines
829 B
Handlebars
<dialog class="modal-dialog" id="repo-watch-options-modal">
|
|
<div class="header">{{ctx.Locale.Tr "notifications"}}</div>
|
|
<form class="ui form form-fetch-action" method="post">
|
|
<div class="content">
|
|
<div class="flex-relaxed-list tw-gap-4">
|
|
<div class="ui checkbox">
|
|
<input name="issues" type="checkbox">
|
|
<label>{{ctx.Locale.Tr "repo.watch.options.issues"}}</label>
|
|
</div>
|
|
<div class="ui checkbox">
|
|
<input name="pull_requests" type="checkbox">
|
|
<label>{{ctx.Locale.Tr "repo.watch.options.pull_requests"}}</label>
|
|
</div>
|
|
<div class="ui checkbox">
|
|
<input name="releases" type="checkbox">
|
|
<label>{{ctx.Locale.Tr "repo.watch.options.releases"}}</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{template "base/modal_actions_confirm" dict "ModalButtonTypes" "confirm"}}
|
|
</form>
|
|
</dialog>
|