From de81f68d4d4a87c044034be682abffaccd399860 Mon Sep 17 00:00:00 2001 From: Shyim Date: Sat, 4 Feb 2017 07:02:24 +0100 Subject: [PATCH] Fixed form control is not focusable #687 (#837) --- public/js/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/index.js b/public/js/index.js index 086ec7656f0..5f278ab0115 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; }