diff options
author | Chris Buechler <cmb@pfsense.org> | 2009-02-15 14:05:16 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2009-02-15 14:05:16 -0500 |
commit | ee01cb054fc3c022b726199b63a69b67751fe860 (patch) | |
tree | ab127ec36c73a2ef95a53fc902c94c416222d607 /usr/local | |
parent | 124aee67adde2663086ed2b9c408c24f22340712 (diff) | |
download | pfsense-ee01cb054fc3c022b726199b63a69b67751fe860.zip pfsense-ee01cb054fc3c022b726199b63a69b67751fe860.tar.gz |
Revert "show/hide icmp6box"
This reverts commit 9ce5e10ac4fe43e9b580344454dd27172b6c4456.
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/javascript/firewall_rules_edit/firewall_rules_edit.js | 38 |
1 files changed, 4 insertions, 34 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 873bd87..8ac037f 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 @@ -52,19 +52,7 @@ function typesel_change() { document.iform.srcmask.value = ""; document.iform.srcmask.disabled = 1; break; - case 2: /* IPv4 network */ - var obj = document.getElementById('srcmask'); - NetUtils_clearOptions(obj); - NetUtils_loadMaskIPv4(obj, 31, 1, 31); - - document.iform.src.disabled = 0; - document.iform.srcmask.disabled = 0; - break; - case 3: /* IPv6 network */ - var obj = document.getElementById('srcmask'); - NetUtils_clearOptions(obj); - NetUtils_loadMaskIPv6(obj, 127, 1, 127); - + case 2: /* network */ document.iform.src.disabled = 0; document.iform.srcmask.disabled = 0; break; @@ -81,19 +69,7 @@ function typesel_change() { document.iform.dstmask.value = ""; document.iform.dstmask.disabled = 1; break; - case 2: /* IPv4 network */ - var obj = document.getElementById('dstmask'); - NetUtils_clearOptions(obj); - NetUtils_loadMaskIPv4(obj, 31, 1, 31); - - document.iform.dst.disabled = 0; - document.iform.dstmask.disabled = 0; - break; - case 3: /* IPv6 network */ - var obj = document.getElementById('dstmask'); - NetUtils_clearOptions(obj); - NetUtils_loadMaskIPv6(obj, 63, 1, 63); - + case 2: /* network */ document.iform.dst.disabled = 0; document.iform.dstmask.disabled = 0; break; @@ -128,18 +104,12 @@ function proto_change() { ext_change(); - if(document.iform.proto.selectedIndex == 3 || document.iform.proto.selectedIndex == 8) { + if(document.iform.proto.selectedIndex == 3 || document.iform.proto.selectedIndex == 4) { document.getElementById("icmpbox").style.display = ''; } else { document.getElementById("icmpbox").style.display = 'none'; } - if(document.iform.proto.selectedIndex == 7) { - document.getElementById("icmp6box").style.display = ''; - } else { - document.getElementById("icmp6box").style.display = 'none'; - } - if(document.iform.proto.selectedIndex >= 0 && document.iform.proto.selectedIndex <= 2) { document.getElementById("dprtr").style.display = ''; document.getElementById("showadvancedboxspr").innerHTML='<p><input type="button" onClick="show_source_port_range()" value="Advanced"></input> - Show source port range</a>'; @@ -176,4 +146,4 @@ window.onload = function () { var oTextbox5 = new AutoSuggestControl(document.getElementById("dstbeginport_cust"), new StateSuggestions(customarray)); var oTextbox6 = new AutoSuggestControl(document.getElementById("dstendport_cust"), new StateSuggestions(customarray)); } -//--> +//-->
\ No newline at end of file |