diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-03-10 21:26:14 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-03-10 21:26:14 +0000 |
commit | 22ef7302689170d627f7fd387a8282d506f57cc8 (patch) | |
tree | 04764d63ad7ce076d80bdcb6576181c86e960e65 /usr/local/www | |
parent | 06f3935ea8fc551d5bf04b1ec281ad390b2e8f07 (diff) | |
download | pfsense-22ef7302689170d627f7fd387a8282d506f57cc8.zip pfsense-22ef7302689170d627f7fd387a8282d506f57cc8.tar.gz |
MFC 10452
make fields required based on pool type
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/load_balancer_pool_edit.php | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/usr/local/www/load_balancer_pool_edit.php b/usr/local/www/load_balancer_pool_edit.php index 9f7ca00..c3861c5 100755 --- a/usr/local/www/load_balancer_pool_edit.php +++ b/usr/local/www/load_balancer_pool_edit.php @@ -150,6 +150,12 @@ function type_change(enable_change) { clearcombo(); document.iform.serversSelect.clear; document.iform.monitorip.disabled = 1; + monitorip_text = document.getElementById("monitorip_text"); + monitorip_text.className = "vncell"; + monitorport_text = document.getElementById("monitorport_text"); + monitorport_text.className = "vncellreq"; + monitorport_desc = document.getElementById("monitorport_desc"); + monitorport_desc.innerHTML = "This is the port your servers are listening too."; document.iform.monitorip.value = ""; document.iform.port.disabled = 0; document.iform.monitor.selectedIndex = 0; @@ -159,6 +165,12 @@ function type_change(enable_change) { clearcombo(); document.iform.monitorip.disabled = 0; document.iform.monitorip.value = ""; + monitorip_text = document.getElementById("monitorip_text"); + monitorip_text.className = "vncellreq"; + monitorport_text = document.getElementById("monitorport_text"); + monitorport_text.className = "vncell"; + monitorport_desc = document.getElementById("monitorport_desc"); + monitorport_desc.innerHTML = ""; document.iform.port.disabled = 1; /* set to ICMP */ document.iform.monitor.selectedIndex = 1; @@ -204,9 +216,9 @@ function clearcombo(){ </tr> <tr align="left"> - <td width="22%" valign="top" class="vncellreq">Port</td> + <td width="22%" valign="top" id="monitorport_text" class="vncellreq">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"> - server pool port, this is the port your servers are listening to. + <input name="port" type="text" <?if(isset($pconfig['port'])) echo "value=\"{$pconfig['port']}\"";?> size="16" maxlength="16"><div id="monitorport_desc"></div> </td> </tr> <tr align="left"> @@ -220,7 +232,7 @@ function clearcombo(){ </td> </tr> <tr align="left"> - <td width="22%" valign="top" class="vncellreq">Monitor IP</td> + <td width="22%" valign="top" id="monitorip_text" class="vncell">Monitor IP</td> <td width="78%" class="vtable" colspan="2"> <input size="16" id="monitorip" name="monitorip" value="<?php echo $pconfig['monitorip']; ?>"> </td> @@ -268,6 +280,7 @@ function clearcombo(){ </tr> </table> </form> +<script language="javascript">type_change();</script> <?php include("fend.inc"); ?> </body> </html> |