diff options
Diffstat (limited to 'usr/local/www/javascript')
-rw-r--r-- | usr/local/www/javascript/firewall_nat_edit/firewall_nat_edit.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/usr/local/www/javascript/firewall_nat_edit/firewall_nat_edit.js b/usr/local/www/javascript/firewall_nat_edit/firewall_nat_edit.js index 7c5dd61..2dcb845 100644 --- a/usr/local/www/javascript/firewall_nat_edit/firewall_nat_edit.js +++ b/usr/local/www/javascript/firewall_nat_edit/firewall_nat_edit.js @@ -19,12 +19,32 @@ function ext_change() { document.iform.localbeginport_cust.disabled = 1; } } + function ext_rep_change() { document.iform.endport.selectedIndex = document.iform.beginport.selectedIndex; document.iform.localbeginport.selectedIndex = document.iform.beginport.selectedIndex; } +function proto_change() { + if(document.iform.proto.selectedIndex > 3) { + document.iform.beginport_cust.disabled = 1; + document.iform.endport_cust.disabled = 1; + document.iform.beginport.disabled = 1; + document.iform.endport.disabled = 1; + document.iform.localbeginport_cust.disabled = 1; + document.iform.localbeginport.disabled = 1; + } else { + document.iform.beginport_cust.disabled = 0; + document.iform.endport_cust.disabled = 0; + document.iform.beginport.disabled = 0; + document.iform.endport.disabled = 0; + document.iform.localbeginport_cust.disabled = 0; + document.iform.localbeginport.disabled = 0; + } + +} + window.onload = function () { var oTextbox1 = new AutoSuggestControl(document.getElementById("localip"), new StateSuggestions(addressarray)); var oTextbox2 = new AutoSuggestControl(document.getElementById("beginport_cust"), new StateSuggestions(customarray)); |