summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/firewall_aliases_edit.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-12-07 15:19:48 -0500
committerStephen Beaver <sbeaver@netgate.com>2015-12-07 15:21:28 -0500
commitc24178cda3b6e9c0807c18421e2f42053d6a79c7 (patch)
treee5eaf6a542f146d96e3012477dfaee40f8131671 /src/usr/local/www/firewall_aliases_edit.php
parentfff8311825126bafdf3b98bfabd64d09752ff726 (diff)
downloadpfsense-c24178cda3b6e9c0807c18421e2f42053d6a79c7.zip
pfsense-c24178cda3b6e9c0807c18421e2f42053d6a79c7.tar.gz
Fixed #5593
The jQuery required to fix this is tricky, but I believe this fixes the issue by re-adding the autoselect data to newly cloned groups.
Diffstat (limited to 'src/usr/local/www/firewall_aliases_edit.php')
-rwxr-xr-xsrc/usr/local/www/firewall_aliases_edit.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/usr/local/www/firewall_aliases_edit.php b/src/usr/local/www/firewall_aliases_edit.php
index 3f2563b..4656541 100755
--- a/src/usr/local/www/firewall_aliases_edit.php
+++ b/src/usr/local/www/firewall_aliases_edit.php
@@ -739,6 +739,8 @@ print $form;
<script type="text/javascript">
//<![CDATA[
+addressarray = <?= json_encode(array_exclude($pconfig['name'], get_alias_list($pconfig['type']))) ?>;
+
events.push(function(){
var disable_subnets;
@@ -812,10 +814,12 @@ events.push(function(){
checkLastRow();
// Autocomplete
- var addressarray = <?= json_encode(array_exclude($pconfig['name'], get_alias_list($pconfig['type']))) ?>;
-
- $('[id^=address]').autocomplete({
- source: addressarray
+ $('[id^=address]').each(function() {
+ if(this.id.substring(0, 8) != "address_") {
+ $(this).autocomplete({
+ source: addressarray
+ });
+ }
});
// on click . .
OpenPOWER on IntegriCloud