mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Allow item to be saved
This commit is contained in:
parent
120daf8366
commit
6ec18a7a13
@ -29,9 +29,6 @@ function check_for_aliases() {
|
||||
/* if External port range is an alias, then disallow
|
||||
* entry of Local port
|
||||
*/
|
||||
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]) {
|
||||
document.iform.endport_cust.value = customarray[i];
|
||||
@ -39,6 +36,9 @@ function check_for_aliases() {
|
||||
document.iform.endport_cust.disabled = 1;
|
||||
document.iform.localbeginport.disabled = 1;
|
||||
document.iform.localbeginport_cust.disabled = 1;
|
||||
document.iform.endport_cust.disabled = 0;
|
||||
document.iform.localbeginport.disabled = 0;
|
||||
document.iform.localbeginport_cust.disabled = 0;
|
||||
}
|
||||
if(document.iform.beginport.value == customarray[i]) {
|
||||
document.iform.endport_cust.value = customarray[i];
|
||||
@ -46,6 +46,9 @@ function check_for_aliases() {
|
||||
document.iform.endport_cust.disabled = 1;
|
||||
document.iform.localbeginport.disabled = 1;
|
||||
document.iform.localbeginport_cust.disabled = 1;
|
||||
document.iform.endport_cust.disabled = 0;
|
||||
document.iform.localbeginport.disabled = 0;
|
||||
document.iform.localbeginport_cust.disabled = 0;
|
||||
}
|
||||
if(document.iform.endport_cust.value == customarray[i]) {
|
||||
document.iform.endport_cust.value = customarray[i];
|
||||
@ -53,6 +56,9 @@ function check_for_aliases() {
|
||||
document.iform.endport_cust.disabled = 1;
|
||||
document.iform.localbeginport.disabled = 1;
|
||||
document.iform.localbeginport_cust.disabled = 1;
|
||||
document.iform.endport_cust.disabled = 0;
|
||||
document.iform.localbeginport.disabled = 0;
|
||||
document.iform.localbeginport_cust.disabled = 0;
|
||||
}
|
||||
if(document.iform.endport.value == customarray[i]) {
|
||||
document.iform.endport_cust.value = customarray[i];
|
||||
@ -60,6 +66,9 @@ function check_for_aliases() {
|
||||
document.iform.endport_cust.disabled = 1;
|
||||
document.iform.localbeginport.disabled = 1;
|
||||
document.iform.localbeginport_cust.disabled = 1;
|
||||
document.iform.endport_cust.disabled = 0;
|
||||
document.iform.localbeginport.disabled = 0;
|
||||
document.iform.localbeginport_cust.disabled = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user