summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_router_advertisements.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/services_router_advertisements.php
parentc1a95a664f8846146b5654c5c28b5cdc3c4f06b3 (diff)
downloadpfsense-36c9e5fc2dc1e4485984337e33d2c2c6f47890f6.zip
pfsense-36c9e5fc2dc1e4485984337e33d2c2c6f47890f6.tar.gz
jQuery autocomplete added as required
Diffstat (limited to 'src/usr/local/www/services_router_advertisements.php')
-rw-r--r--src/usr/local/www/services_router_advertisements.php14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/usr/local/www/services_router_advertisements.php b/src/usr/local/www/services_router_advertisements.php
index 80346e5..5ab6f6f 100644
--- a/src/usr/local/www/services_router_advertisements.php
+++ b/src/usr/local/www/services_router_advertisements.php
@@ -372,12 +372,12 @@ $form->add($section);
$section = new Form_Section('DNS Configuration');
-for($idx=0; $idx<4; $idx++) {
+for($idx=1; $idx=<4; $idx++) {
$section->addInput(new Form_IpAddress(
'radns' . $idx,
- 'Server ' . ($idx + 1),
+ 'Server ' . $idx,
$pconfig['radns' . $idx]
- ))->setHelp($idx < 3 ? '':'Leave blank to use the system default DNS servers - this interface\'s IP if DNS Forwarder or Resolver is enabled, otherwise the servers configured on the General page');
+ ))->setHelp(($idx < 4) ? '':'Leave blank to use the system default DNS servers - this interface\'s IP if DNS Forwarder or Resolver is enabled, otherwise the servers configured on the General page');
}
$section->addInput(new Form_Input(
@@ -571,6 +571,14 @@ events.push(function(){
else
alert('<?php echo gettext("You may not delete the last one!")?>');
});
+
+ // --------- Autocomplete -----------------------------------------------------------------------------------------
+ var addressarray = <?= json_encode(get_alias_list(array("host", "network", "openvpn", "urltable"))) ?>;
+
+ $('#radns1, #radns2, #radns3, #radns4').autocomplete({
+ source: addressarray
+ });
+
});
//]]>
</script>
OpenPOWER on IntegriCloud