From 39a3b768bc8b0288cb4aa91d27485f46cfbfeb29 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 6 Aug 2015 22:48:11 +0800 Subject: #334: Add Deployment Key Support --- public/js/gogs.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'public/js') diff --git a/public/js/gogs.js b/public/js/gogs.js index 8802ea64..7e57a5e1 100644 --- a/public/js/gogs.js +++ b/public/js/gogs.js @@ -86,6 +86,13 @@ function initRepository() { return false; }); } + + // Settings + if ($('.repository.settings').length > 0) { + $('#add-deploy-key').click(function () { + $('#add-deploy-key-panel').show(); + }); + } }; $(document).ready(function () { -- cgit v1.2.3