]> source.dussan.org Git - gitea.git/commit
Fix and clean up `ConfirmModal` (#31283) (#31291)
authorGiteabot <teabot@gitea.io>
Fri, 7 Jun 2024 13:51:54 +0000 (21:51 +0800)
committerGitHub <noreply@github.com>
Fri, 7 Jun 2024 13:51:54 +0000 (15:51 +0200)
commit5ca4c6d0667eb7da229e11a043f5787a12d0d48e
tree8acea9a405ca0118bb82edc7672fb47438c28a79
parent75e0bdcec582409d6c49f9e443918981b19531ea
Fix and clean up `ConfirmModal` (#31283) (#31291)

Backport #31283 by @silverwind

Bug: orange button color was removed in
https://github.com/go-gitea/gitea/pull/30475, replaced with red
Bug: translation text was not html-escaped
Refactor: Replaced as much jQuery as possible, added useful
`createElementFromHTML`
Refactor: Remove colors checks that don't exist on `.link-action`

<img width="381" alt="image"
src="https://github.com/go-gitea/gitea/assets/115237/5900bf6a-8a86-4a86-b368-0559cbfea66e">

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: delvh <dev.lh@web.de>
web_src/js/features/common-global.js
web_src/js/features/comp/ConfirmModal.js
web_src/js/features/repo-issue-list.js
web_src/js/utils/dom.js
web_src/js/utils/dom.test.js [new file with mode: 0644]