summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/firewall_nat_out_edit.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-09-11 10:27:47 -0400
committerStephen Beaver <sbeaver@netgate.com>2015-09-11 10:27:47 -0400
commit36c9e5fc2dc1e4485984337e33d2c2c6f47890f6 (patch)
tree565bc55d15ffa9492d1721475e831a98a1f917ac /src/usr/local/www/firewall_nat_out_edit.php
parentc1a95a664f8846146b5654c5c28b5cdc3c4f06b3 (diff)
downloadpfsense-36c9e5fc2dc1e4485984337e33d2c2c6f47890f6.zip
pfsense-36c9e5fc2dc1e4485984337e33d2c2c6f47890f6.tar.gz
jQuery autocomplete added as required
Diffstat (limited to 'src/usr/local/www/firewall_nat_out_edit.php')
-rw-r--r--src/usr/local/www/firewall_nat_out_edit.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/usr/local/www/firewall_nat_out_edit.php b/src/usr/local/www/firewall_nat_out_edit.php
index 222ad52..d7e8309 100644
--- a/src/usr/local/www/firewall_nat_out_edit.php
+++ b/src/usr/local/www/firewall_nat_out_edit.php
@@ -844,6 +844,17 @@ events.push(function(){
proto_change();
poolopts_change();
+ // --------- 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"))) ?>;
+
+ $('#localip, #source').autocomplete({
+ source: addressarray
+ });
+
+ $('#dstbeginport_cust, #sourceport, #destination, #dstport').autocomplete({
+ source: customarray
+ });
});
//]]>
</script>
OpenPOWER on IntegriCloud