diff options
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/javascript/firewall_nat_edit/firewall_nat_edit.js | 4 |
1 files changed, 2 insertions, 2 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 9f21c2b..0cf9884 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 @@ -112,13 +112,13 @@ function check_for_aliases() { } function proto_change() { - if (document.iform.proto.selectedIndex < 3) { + if (document.iform.proto.selectedIndex >= 0 && document.iform.proto.selectedIndex <= 2) { portsenabled = 1; } else { portsenabled = 0; } - if(document.iform.proto.selectedIndex >= 0 && document.iform.proto.selectedIndex <= 2) { + if (portsenabled) { document.getElementById("sprtable").style.display = showsource == 1 ? '':'none'; document.getElementById("dprtr").style.display = ''; document.getElementById("lprtr").style.display = ''; |