mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-06-29 08:37:08 +08:00
new delete account UI and password confirmation
This commit is contained in:
@ -336,6 +336,11 @@ $(document).ready(function () {
|
||||
$('.delete.modal').modal({
|
||||
closable: false,
|
||||
onApprove: function () {
|
||||
if ($this.data('type') == "form") {
|
||||
$($this.data('form')).submit();
|
||||
return;
|
||||
}
|
||||
|
||||
$.post($this.data('url'), {
|
||||
"_csrf": csrf,
|
||||
"id": $this.data("id")
|
||||
|
Reference in New Issue
Block a user