diff options
Diffstat (limited to 'src/usr/local/www/services_router_advertisements.php')
-rw-r--r-- | src/usr/local/www/services_router_advertisements.php | 14 |
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> |