diff options
author | Unknwon <u@gogs.io> | 2015-08-19 02:49:44 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-19 02:49:44 +0800 |
commit | 249345458737e4db5a06250593787b483726dff0 (patch) | |
tree | cf0c0b2a26341cbddfce59219d3cf447622563e3 /public/js | |
parent | 81b8427438d4d37d38a46d0fec4c22aee60f91fa (diff) | |
download | gitea-249345458737e4db5a06250593787b483726dff0.tar.gz gitea-249345458737e4db5a06250593787b483726dff0.zip |
new delete account UI and password confirmation
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/gogs.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js index 5dae3c0c98..6ba9d280b9 100644 --- a/public/js/gogs.js +++ b/public/js/gogs.js @@ -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") |