diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2016-01-12 15:58:55 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-01-12 15:58:55 -0500 |
commit | cadc410750c3f2df6fc744abdfcb4c3184340ef5 (patch) | |
tree | 3e5c8f5d9b9b70118dbcfbbfef7e3d46e1cf0f0e /src/usr/local | |
parent | f8619b466f6c96996180f027fd4ca03bfcb212de (diff) | |
download | pfsense-cadc410750c3f2df6fc744abdfcb4c3184340ef5.zip pfsense-cadc410750c3f2df6fc744abdfcb4c3184340ef5.tar.gz |
Fix port aliases (Seems you can't autosuggest an element of type "number")
Diffstat (limited to 'src/usr/local')
-rw-r--r-- | src/usr/local/www/firewall_nat_edit.php | 9 |
1 files 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 }); + }); //]]> </script> |