diff options
Diffstat (limited to 'public/js/gogs.js')
-rw-r--r-- | public/js/gogs.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js index 4bae588d..04f246a9 100644 --- a/public/js/gogs.js +++ b/public/js/gogs.js @@ -118,7 +118,6 @@ function initCommentForm() { $(this).removeClass('selected active') }); - if (has_update_action) { updateIssueMeta($menu.data('update-url'), '', ''); } @@ -227,13 +226,6 @@ function initRepository() { }); } - // Settings - if ($('.repository.settings').length > 0) { - $('#add-deploy-key').click(function () { - $('#add-deploy-key-panel').show(); - }); - } - // Issues if ($('.repository.view.issue').length > 0) { var $status_btn = $('#status-button'); @@ -337,6 +329,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") @@ -347,6 +344,9 @@ $(document).ready(function () { }).modal('show'); return false; }); + $('.show-panel.button').click(function () { + $($(this).data('panel')).show(); + }); initCommentForm(); initInstall(); |