aboutsummaryrefslogtreecommitdiff
path: root/public/js/gogs.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/js/gogs.js')
-rw-r--r--public/js/gogs.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js
index eb161d17..c57dca4f 100644
--- a/public/js/gogs.js
+++ b/public/js/gogs.js
@@ -860,6 +860,7 @@ function initAdmin() {
$('.dldap').hide();
$('.smtp').hide();
$('.pam').hide();
+ $('.github').hide();
$('.has-tls').hide();
var authType = $(this).val();
@@ -877,7 +878,10 @@ function initAdmin() {
case '5': // LDAP
$('.dldap').show();
break;
- }
+ case '6': //GITHUB
+ $('.github').show();
+ break;
+ }
if (authType == '2' || authType == '5') {
onSecurityProtocolChange()