From 36c9e5fc2dc1e4485984337e33d2c2c6f47890f6 Mon Sep 17 00:00:00 2001 From: Stephen Beaver Date: Fri, 11 Sep 2015 10:27:47 -0400 Subject: jQuery autocomplete added as required --- src/usr/local/www/services_router_advertisements.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/usr/local/www/services_router_advertisements.php') 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(''); }); + + // --------- Autocomplete ----------------------------------------------------------------------------------------- + var addressarray = ; + + $('#radns1, #radns2, #radns3, #radns4').autocomplete({ + source: addressarray + }); + }); //]]> -- cgit v1.1