diff options
Diffstat (limited to 'usr/local/www/javascript/firewall_rules_edit')
-rw-r--r-- | usr/local/www/javascript/firewall_rules_edit/firewall_rules_edit.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/javascript/firewall_rules_edit/firewall_rules_edit.js b/usr/local/www/javascript/firewall_rules_edit/firewall_rules_edit.js index 2aefe92..38b9363 100644 --- a/usr/local/www/javascript/firewall_rules_edit/firewall_rules_edit.js +++ b/usr/local/www/javascript/firewall_rules_edit/firewall_rules_edit.js @@ -3,13 +3,13 @@ var portsenabled = 1; var editenabled = 1; function ext_change() { - if ((document.iform.srcbeginport.selectedIndex == 0) && portsenabled) { + if ((document.iform.srcbeginport.selectedIndex == 0) && portsenabled && editenabled) { document.iform.srcbeginport_cust.disabled = 0; } else { document.iform.srcbeginport_cust.value = ""; document.iform.srcbeginport_cust.disabled = 1; } - if ((document.iform.srcendport.selectedIndex == 0) && portsenabled) { + if ((document.iform.srcendport.selectedIndex == 0) && portsenabled && editenabled) { document.iform.srcendport_cust.disabled = 0; } else { document.iform.srcendport_cust.value = ""; @@ -34,9 +34,9 @@ function ext_change() { document.iform.dstbeginport.disabled = 1; document.iform.dstendport.disabled = 1; } else { - document.iform.srcbeginport.disabled = 0; - document.iform.srcendport.disabled = 0; if( editenabled ) { + document.iform.srcbeginport.disabled = 0; + document.iform.srcendport.disabled = 0; document.iform.dstbeginport.disabled = 0; document.iform.dstendport.disabled = 0; } |