diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-12-07 15:19:48 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-12-07 15:21:28 -0500 |
commit | c24178cda3b6e9c0807c18421e2f42053d6a79c7 (patch) | |
tree | e5eaf6a542f146d96e3012477dfaee40f8131671 /src/usr/local/www/firewall_aliases_edit.php | |
parent | fff8311825126bafdf3b98bfabd64d09752ff726 (diff) | |
download | pfsense-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-x | src/usr/local/www/firewall_aliases_edit.php | 12 |
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 . . |