diff options
Diffstat (limited to 'public/js/gogs.js')
-rw-r--r-- | public/js/gogs.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js index 6ba9d280b9..04f246a916 100644 --- a/public/js/gogs.js +++ b/public/js/gogs.js @@ -226,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'); @@ -351,6 +344,9 @@ $(document).ready(function () { }).modal('show'); return false; }); + $('.show-panel.button').click(function () { + $($(this).data('panel')).show(); + }); initCommentForm(); initInstall(); |