summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorShyim <shyim@users.noreply.github.com>2017-02-04 07:02:24 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2017-02-04 14:02:24 +0800
commitde81f68d4d4a87c044034be682abffaccd399860 (patch)
treecd27edf65adb0941432782044bd1af6067cb6a19 /public
parentb6da6585535209f3916eeab245d793f30e8bd650 (diff)
downloadgitea-de81f68d4d4a87c044034be682abffaccd399860.tar.gz
gitea-de81f68d4d4a87c044034be682abffaccd399860.zip
Fixed form control is not focusable #687 (#837)
Diffstat (limited to 'public')
-rw-r--r--public/js/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 086ec7656f..5f278ab011 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -989,7 +989,7 @@ function initAdmin() {
switch (authType) {
case '2': // LDAP
$('.ldap').show();
- $('.ldap div.required input').attr('required', 'required');
+ $('.ldap div.required:not(.dldap) input').attr('required', 'required');
break;
case '3': // SMTP
$('.smtp').show();
@@ -1002,7 +1002,7 @@ function initAdmin() {
break;
case '5': // LDAP
$('.dldap').show();
- $('.dldap div.required input').attr('required', 'required');
+ $('.dldap div.required:not(.ldap) input').attr('required', 'required');
break;
}