diff options
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") |