diff options
author | Jared Dillard <jdillard@netgate.com> | 2015-09-24 11:47:56 -0500 |
---|---|---|
committer | Jared Dillard <jdillard@netgate.com> | 2015-09-24 11:48:03 -0500 |
commit | eef931443d426e1a5a75352a75cd881d8223d979 (patch) | |
tree | 176dba700001cd0ccfca56e76bf6ac20fdb30945 /src/usr/local/www/firewall_rules_edit.php | |
parent | d94da29844316954348a3f7c97fff93de15051f9 (diff) | |
download | pfsense-eef931443d426e1a5a75352a75cd881d8223d979.zip pfsense-eef931443d426e1a5a75352a75cd881d8223d979.tar.gz |
Ticket #5204 a clean up pass of the jquery sections
Diffstat (limited to 'src/usr/local/www/firewall_rules_edit.php')
-rw-r--r-- | src/usr/local/www/firewall_rules_edit.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/usr/local/www/firewall_rules_edit.php b/src/usr/local/www/firewall_rules_edit.php index 6927af3..b2e32be 100644 --- a/src/usr/local/www/firewall_rules_edit.php +++ b/src/usr/local/www/firewall_rules_edit.php @@ -1661,6 +1661,7 @@ echo $form; <script> //<![CDATA[ events.push(function(){ + //---------- "Standard" show/hide functions --------------------------------------------------- // Hides the <div> in which the specified input element lives so that the input, its label and help text are hidden function hideInput(id, hide) { @@ -1965,15 +1966,18 @@ events.push(function(){ setHelpText(target, dispstr); } - // On click . . + // ---------- Click checkbox handlers --------------------------------------------------------- + $('#statetype').on('change', function() { setOptText('statetype', this.value); }); - // At page load . . + // ---------- On initial page load ------------------------------------------------------------ + setOptText('statetype', $('#statetype').val()) - // --------- Autocomplete ----------------------------------------------------------------------------------------- + // ---------- Autocomplete -------------------------------------------------------------------- + var addressarray = <?= json_encode(get_alias_list(array("host", "network", "openvpn", "urltable"))) ?>; var customarray = <?= json_encode(get_alias_list(array("port", "url_ports", "urltable_ports"))) ?>; |