summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-07 17:52:54 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-07 17:52:54 +0000
commit16848ad4d84ff1eb87f62dfcb5c046b3c585f8b2 (patch)
treee9e8f4369afe2dd2c58ed7876c475d2293904e20 /usr/local/www
parent45a1a1e7d35b407d6ca015688a074ad59c5e9b60 (diff)
downloadpfsense-16848ad4d84ff1eb87f62dfcb5c046b3c585f8b2.zip
pfsense-16848ad4d84ff1eb87f62dfcb5c046b3c585f8b2.tar.gz
Clear the list if a differnet Type is selected
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/load_balancer_pool_edit.php9
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"); ?>
OpenPOWER on IntegriCloud