diff options
author | Darren Embry <dse@webonastick.com> | 2012-05-10 14:00:23 -0400 |
---|---|---|
committer | Darren Embry <dse@webonastick.com> | 2012-05-10 14:00:23 -0400 |
commit | 5b84bd652e68e682ee12a37857ac9bb4b4933b37 (patch) | |
tree | 69fa0412649b1470ea1966f2f4daa8a5c46c50f9 /usr/local | |
parent | 04d4bcdf93814d50ea955e284dccad8f9b2152ec (diff) | |
download | pfsense-5b84bd652e68e682ee12a37857ac9bb4b4933b37.zip pfsense-5b84bd652e68e682ee12a37857ac9bb4b4933b37.tar.gz |
add autocomplete for port (PEV-394754)
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/load_balancer_virtual_server_edit.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/usr/local/www/load_balancer_virtual_server_edit.php b/usr/local/www/load_balancer_virtual_server_edit.php index 797f65d..6f57adb 100755 --- a/usr/local/www/load_balancer_virtual_server_edit.php +++ b/usr/local/www/load_balancer_virtual_server_edit.php @@ -174,6 +174,10 @@ jQuery(document).ready( function() { }); </script> + +<script type="text/javascript" src="/javascript/autosuggest.js"></script> +<script type="text/javascript" src="/javascript/suggestions.js"></script> + <?php include("fbegin.inc"); ?> <?php if ($input_errors) print_input_errors($input_errors); ?> <form action="load_balancer_virtual_server_edit.php" method="post" name="iform" id="iform"> @@ -203,9 +207,15 @@ jQuery(document).ready( function() { <tr align="left"> <td width="22%" valign="top" class="vncellreq"><?=gettext("Port"); ?></td> <td width="78%" class="vtable" colspan="2"> - <input name="port" type="text" <?if(isset($pconfig['port'])) echo "value=\"{$pconfig['port']}\"";?> size="16" maxlength="16"> + <input class="formfldalias" name="port" id="port" type="text" <?if(isset($pconfig['port'])) echo "value=\"{$pconfig['port']}\"";?> size="16" maxlength="16"> <br><?=gettext("This is the port that the clients will connect to. All connections to this port will be forwarded to the pool cluster."); ?> <br><?=gettext("You may also specify a port alias listed in Firewall -> Aliases here."); ?> + <script type="text/javascript"> + //<![CDATA[ + var addressarray = <?= json_encode(get_alias_list("port")) ?>; + var oTextbox1 = new AutoSuggestControl(document.getElementById("port"), new StateSuggestions(addressarray)); + //]]> + </script> </td> </tr> <tr align="left"> |