aboutsummaryrefslogtreecommitdiffstats
path: root/public/js
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-19 03:36:16 +0800
committerUnknwon <u@gogs.io>2015-08-19 03:36:16 +0800
commit4c7b6414eb91d12473ee0000bc3fccfd105feef9 (patch)
treefcba9eec9c31d4c77cb69b4afaa0eecac2d94e7c /public/js
parent2e8ffc2ffb31379998142e807f0066d5d9846c2c (diff)
downloadgitea-4c7b6414eb91d12473ee0000bc3fccfd105feef9.tar.gz
gitea-4c7b6414eb91d12473ee0000bc3fccfd105feef9.zip
new access token UI
Diffstat (limited to 'public/js')
-rw-r--r--public/js/gogs.js10
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();