mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Re-enable items when needed
This commit is contained in:
parent
e2705d6797
commit
f5a684087c
@ -31,33 +31,34 @@ function check_for_aliases() {
|
||||
*/
|
||||
document.iform.endport_cust.disabled = 0;
|
||||
document.iform.localbeginport.disabled = 0;
|
||||
document.iform.localbeginport_cust.disabled = 0;
|
||||
for(i=0; i<customarray.length; i++) {
|
||||
if(document.iform.beginport_cust.value == customarray[i]) {
|
||||
alert(customarray[i]);
|
||||
document.iform.endport_cust.value = "";
|
||||
document.iform.endport_cust.disabled = 1;
|
||||
document.iform.localbeginport_cust.value = "";
|
||||
document.iform.endport_cust.disabled = 1;
|
||||
document.iform.localbeginport.disabled = 1;
|
||||
document.iform.localbeginport_cust.disabled = 1;
|
||||
}
|
||||
if(document.iform.beginport.value == customarray[i]) {
|
||||
document.iform.endport_cust.value = "";
|
||||
document.iform.endport_cust.disabled = 1;
|
||||
document.iform.localbeginport_cust.value = "";
|
||||
document.iform.endport_cust.disabled = 1;
|
||||
document.iform.localbeginport.disabled = 1;
|
||||
document.iform.localbeginport_cust.disabled = 1;
|
||||
}
|
||||
if(document.iform.endport_cust.value == customarray[i]) {
|
||||
document.iform.endport_cust.value = "";
|
||||
document.iform.endport_cust.disabled = 1;
|
||||
document.iform.localbeginport_cust.value = "";
|
||||
document.iform.endport_cust.disabled = 1;
|
||||
document.iform.localbeginport.disabled = 1;
|
||||
document.iform.localbeginport_cust.disabled = 1;
|
||||
}
|
||||
if(document.iform.endport.value == customarray[i]) {
|
||||
document.iform.endport_cust.value = "";
|
||||
document.iform.endport_cust.disabled = 1;
|
||||
document.iform.localbeginport_cust.value = "";
|
||||
document.iform.endport_cust.disabled = 1;
|
||||
document.iform.localbeginport.disabled = 1;
|
||||
document.iform.localbeginport_cust.disabled = 1;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user