From 4c7b6414eb91d12473ee0000bc3fccfd105feef9 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Wed, 19 Aug 2015 03:36:16 +0800 Subject: new access token UI --- public/js/gogs.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'public/js') diff --git a/public/js/gogs.js b/public/js/gogs.js index 6ba9d280..04f246a9 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(); -- cgit v1.2.3