From cadc410750c3f2df6fc744abdfcb4c3184340ef5 Mon Sep 17 00:00:00 2001 From: Stephen Beaver Date: Tue, 12 Jan 2016 15:58:55 -0500 Subject: Fix port aliases (Seems you can't autosuggest an element of type "number") --- src/usr/local/www/firewall_nat_edit.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/usr/local/www/firewall_nat_edit.php b/src/usr/local/www/firewall_nat_edit.php index 2018ac8..83e1cb1 100644 --- a/src/usr/local/www/firewall_nat_edit.php +++ b/src/usr/local/www/firewall_nat_edit.php @@ -834,7 +834,7 @@ $group->add(new Form_Select( $group->add(new Form_Input( 'dstbeginport_cust', null, - 'number', + 'text', is_numeric($pconfig['dstbeginport']) ? $pconfig['dstbeginport'] : null, ['min' => '1', 'max' => '65536'] ))->setHelp('Custom'); @@ -849,7 +849,7 @@ $group->add(new Form_Select( $group->add(new Form_Input( 'dstendport_cust', null, - 'number', + 'text', is_numeric($pconfig['dstendport']) ? $pconfig['dstendport'] : null, ['min' => '1', 'max' => '65536'] ))->setHelp('Custom'); @@ -883,7 +883,7 @@ $group->setHelp('Specify the port on the machine with the IP address entered abo $group->add(new Form_Input( 'localbeginport_cust', null, - 'number', + 'text', is_numeric($pconfig['localbeginport']) ? $pconfig['localbeginport'] : null, ['min' => '1', 'max' => '65536'] ))->setHelp('Custom'); @@ -1284,9 +1284,10 @@ events.push(function() { source: addressarray }); - $('#dstbeginport_cust, #dstendport_cust, #srcbeginport_cust, #srcendport_cust, localbeginport_cust').autocomplete({ + $('#dstbeginport_cust, #dstendport_cust, #srcbeginport_cust, #srcendport_cust, #localbeginport_cust').autocomplete({ source: customarray }); + }); //]]> -- cgit v1.1