Commit e7cb49b8 authored by Ad Schellevis's avatar Ad Schellevis

(ipsec) faulty jquery selector

parent e0083264
...@@ -424,26 +424,26 @@ include("head.inc"); ...@@ -424,26 +424,26 @@ include("head.inc");
$("#authentication_method").change(function(){ $("#authentication_method").change(function(){
$(".auth_opt").hide(); $(".auth_opt").hide();
$(".auth_opt select,input").prop( "disabled", true ); $(".auth_opt :input").prop( "disabled", true );
switch ($("#authentication_method").val()) { switch ($("#authentication_method").val()) {
case 'eap-tls': case 'eap-tls':
case 'hybrid_rsa_server': case 'hybrid_rsa_server':
case 'xauth_rsa_server': case 'xauth_rsa_server':
case 'rsasig': case 'rsasig':
$(".auth_eap_tls").show(); $(".auth_eap_tls").show();
$(".auth_eap_tls select,input").prop( "disabled", false ); $(".auth_eap_tls :input").prop( "disabled", false );
$(".auth_eap_tls_caref").show(); $(".auth_eap_tls_caref").show();
$(".auth_eap_tls_caref select,input").prop( "disabled", false ); $(".auth_eap_tls_caref :input").prop( "disabled", false );
break; break;
case 'pre_shared_key': case 'pre_shared_key':
if ($("#mobile").val() == undefined) { if ($("#mobile").val() == undefined) {
$(".auth_psk").show(); $(".auth_psk").show();
$(".auth_psk select,input").prop( "disabled", false ); $(".auth_psk :input").prop( "disabled", false );
} }
break; break;
default: /* psk modes*/ default: /* psk modes*/
$(".auth_psk").show(); $(".auth_psk").show();
$(".auth_psk select,input").prop( "disabled", false ); $(".auth_psk :input").prop( "disabled", false );
break; break;
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment