summaryrefslogtreecommitdiffstats
path: root/usr/local/www/load_balancer_virtual_server_edit.php
diff options
context:
space:
mode:
authorDarren Embry <dse@webonastick.com>2012-05-10 14:00:23 -0400
committerDarren Embry <dse@webonastick.com>2012-05-10 14:00:23 -0400
commit5b84bd652e68e682ee12a37857ac9bb4b4933b37 (patch)
tree69fa0412649b1470ea1966f2f4daa8a5c46c50f9 /usr/local/www/load_balancer_virtual_server_edit.php
parent04d4bcdf93814d50ea955e284dccad8f9b2152ec (diff)
downloadpfsense-5b84bd652e68e682ee12a37857ac9bb4b4933b37.zip
pfsense-5b84bd652e68e682ee12a37857ac9bb4b4933b37.tar.gz
add autocomplete for port (PEV-394754)
Diffstat (limited to 'usr/local/www/load_balancer_virtual_server_edit.php')
-rwxr-xr-xusr/local/www/load_balancer_virtual_server_edit.php12
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 -&gt; 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">
OpenPOWER on IntegriCloud