summaryrefslogtreecommitdiffstats
path: root/public/js
diff options
context:
space:
mode:
authorShaun <shaun.dowling@gmail.com>2017-11-11 23:18:21 +0000
committerLauris BH <lauris@nix.lv>2017-11-12 01:18:21 +0200
commitdd026a4ebb4a53c4cf644261b55772921181a7e8 (patch)
tree145c0bfefeb0610aeec3061a82a793db62b2609c /public/js
parent524cca3a1e28ade644b28f6bd348c45656ecde25 (diff)
downloadgitea-dd026a4ebb4a53c4cf644261b55772921181a7e8.tar.gz
gitea-dd026a4ebb4a53c4cf644261b55772921181a7e8.zip
Fix adding a new authentication source after selecting OAuth (#2889)
Diffstat (limited to 'public/js')
-rw-r--r--public/js/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/index.js b/public/js/index.js
index b6438f296f..3fe828e000 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -1114,7 +1114,7 @@ function initAdmin() {
$('#auth_type').change(function () {
$('.ldap, .dldap, .smtp, .pam, .oauth2, .has-tls').hide();
- $('.ldap input[required], .dldap input[required], .smtp input[required], .pam input[required], .oauth2 input[required] .has-tls input[required]').removeAttr('required');
+ $('.ldap input[required], .dldap input[required], .smtp input[required], .pam input[required], .oauth2 input[required], .has-tls input[required]').removeAttr('required');
var authType = $(this).val();
switch (authType) {