From 249345458737e4db5a06250593787b483726dff0 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Wed, 19 Aug 2015 02:49:44 +0800 Subject: new delete account UI and password confirmation --- public/js/gogs.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'public/js') diff --git a/public/js/gogs.js b/public/js/gogs.js index 5dae3c0c..6ba9d280 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") -- cgit v1.2.3