diff options
-rw-r--r-- | usr/local/www/javascript/firewall_nat_edit/firewall_nat_edit.js | 4 |
1 files changed, 1 insertions, 3 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..e75e192 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 @@ -1,7 +1,6 @@ <!-- var portsenabled = 1; var dstenabled = 1; -var showsource = 0; function ext_change() { if ((document.iform.srcbeginport.selectedIndex == 0) && portsenabled) { @@ -59,7 +58,6 @@ function show_source() { document.getElementById("srctable").style.display = ''; document.getElementById("showadvancedboxsrc").style.display = 'none'; - showsource = 1; } function check_for_aliases() { @@ -119,7 +117,7 @@ function proto_change() { } if(document.iform.proto.selectedIndex >= 0 && document.iform.proto.selectedIndex <= 2) { - document.getElementById("sprtable").style.display = showsource == 1 ? '':'none'; + document.getElementById("sprtable").style.display = portsenabled == 1 ? '':'none'; document.getElementById("dprtr").style.display = ''; document.getElementById("lprtr").style.display = ''; } else { |