mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
(ipsec) faulty jquery selector
This commit is contained in:
parent
e0083264ba
commit
e7cb49b8af
@ -424,26 +424,26 @@ include("head.inc");
|
||||
|
||||
$("#authentication_method").change(function(){
|
||||
$(".auth_opt").hide();
|
||||
$(".auth_opt select,input").prop( "disabled", true );
|
||||
$(".auth_opt :input").prop( "disabled", true );
|
||||
switch ($("#authentication_method").val()) {
|
||||
case 'eap-tls':
|
||||
case 'hybrid_rsa_server':
|
||||
case 'xauth_rsa_server':
|
||||
case 'rsasig':
|
||||
$(".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 select,input").prop( "disabled", false );
|
||||
$(".auth_eap_tls_caref :input").prop( "disabled", false );
|
||||
break;
|
||||
case 'pre_shared_key':
|
||||
if ($("#mobile").val() == undefined) {
|
||||
$(".auth_psk").show();
|
||||
$(".auth_psk select,input").prop( "disabled", false );
|
||||
$(".auth_psk :input").prop( "disabled", false );
|
||||
}
|
||||
break;
|
||||
default: /* psk modes*/
|
||||
$(".auth_psk").show();
|
||||
$(".auth_psk select,input").prop( "disabled", false );
|
||||
$(".auth_psk :input").prop( "disabled", false );
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user