diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-07 17:52:54 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-07 17:52:54 +0000 |
commit | 16848ad4d84ff1eb87f62dfcb5c046b3c585f8b2 (patch) | |
tree | e9e8f4369afe2dd2c58ed7876c475d2293904e20 /usr | |
parent | 45a1a1e7d35b407d6ca015688a074ad59c5e9b60 (diff) | |
download | pfsense-16848ad4d84ff1eb87f62dfcb5c046b3c585f8b2.zip pfsense-16848ad4d84ff1eb87f62dfcb5c046b3c585f8b2.tar.gz |
Clear the list if a differnet Type is selected
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/load_balancer_pool_edit.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/usr/local/www/load_balancer_pool_edit.php b/usr/local/www/load_balancer_pool_edit.php index 94de560..ce6245c 100755 --- a/usr/local/www/load_balancer_pool_edit.php +++ b/usr/local/www/load_balancer_pool_edit.php @@ -128,12 +128,15 @@ include("head.inc"); function type_change(enable_change) { switch (document.iform.type.selectedIndex) { case 0: + clearcombo(); + document.iform.serversSelect.clear; document.iform.monitorip.disabled = 1; document.iform.port.disabled = 0; document.iform.monitor.selectedIndex = 0; document.iform.monitor.disabled = 0; break; case 1: + clearcombo(); document.iform.monitorip.disabled = 0; document.iform.port.disabled = 1; /* set to ICMP */ @@ -142,6 +145,12 @@ function type_change(enable_change) { break; } } +function clearcombo(){ + for (var i=document.iform.serversSelect.options.length-1; i>=0; i--){ + document.iform.serversSelect.options[i] = null; + } + document.iform.serversSelect.selectedIndex = -1; +} </script> <?php include("fbegin.inc"); ?> |