diff options
author | Vinicius Coque <vinicius.coque@bluepex.com> | 2011-10-10 20:59:32 -0300 |
---|---|---|
committer | Vinicius Coque <vinicius.coque@bluepex.com> | 2011-10-10 21:00:06 -0300 |
commit | df39dd8ab4e41c3b668ce8dd9c8b86d7dcceb743 (patch) | |
tree | 635ffcd19347de3991a5dcb8d2b62e9f30706f76 /usr/local/www/firewall_nat_out_edit.php | |
parent | 0491163b1af109660e26cd29bde20369179241ae (diff) | |
download | pfsense-df39dd8ab4e41c3b668ce8dd9c8b86d7dcceb743.zip pfsense-df39dd8ab4e41c3b668ce8dd9c8b86d7dcceb743.tar.gz |
replacing prototype by jQuery on firewall_*
Diffstat (limited to 'usr/local/www/firewall_nat_out_edit.php')
-rwxr-xr-x | usr/local/www/firewall_nat_out_edit.php | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/usr/local/www/firewall_nat_out_edit.php b/usr/local/www/firewall_nat_out_edit.php index c21ad9e..a5be313 100755 --- a/usr/local/www/firewall_nat_out_edit.php +++ b/usr/local/www/firewall_nat_out_edit.php @@ -373,21 +373,21 @@ function proto_change() { } } function poolopts_change() { - if ($('target').options[$('target').selectedIndex].text.substring(0,4) == "Host") { - $('poolopts_tr').style.display = ''; - $('target_network').style.display = 'none'; - } else if ($('target').options[$('target').selectedIndex].text.substring(0,6) == "Subnet") { - $('poolopts_tr').style.display = ''; - $('target_network').style.display = 'none'; - } else if ($('target').options[$('target').selectedIndex].text.substring(0,5) == "Other") { - $('poolopts_tr').style.display = ''; - $('target_network').style.display = ''; + if (jQuery('#target option:selected').text().substring(0,4) == "Host") { + jQuery('#poolopts_tr').css('display',''); + jQuery('#target_network').css('display','none'); + } else if (jQuery('#target option:selected').text().substring(0,6) == "Subnet") { + jQuery('#poolopts_tr').css('display',''); + jQuery('#target_network').css('display','none'); + } else if (jQuery('#target option:selected').text().substring(0,5) == "Other") { + jQuery('#poolopts_tr').css('display',''); + jQuery('#target_network').css('display',''); } else { - $('poolopts').selectedIndex = 0; - $('poolopts_tr').style.display = 'none'; - $('target_network').style.display = 'none'; - $('targetip').value = ''; - $('targetip_subnet').value = '0'; + jQuery('#poolopts').prop('selectedIndex',0); + jQuery('#poolopts_tr').css('display','none'); + jQuery('#target_network').css('display','none'); + jQuery('#targetip').val(''); + jQuery('#targetip_subnet').val('0'); } } //--> |