Update of /cvsroot/netpass/NetPass/www/htdocs/OSSTemplate/js
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16208/www/htdocs/OSSTemplate/js
Modified Files:
switch.js
Log Message:
switch config gui
Index: switch.js
===================================================================
RCS file: /cvsroot/netpass/NetPass/www/htdocs/OSSTemplate/js/switch.js,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- switch.js 2 Jun 2005 19:59:09 -0000 1.2
+++ switch.js 3 Jun 2005 16:59:55 -0000 1.3
@@ -6,6 +6,7 @@
for (var i = vm.options.length-1 ; i > 0 ; i--) {
vm.options[i].selected = true;
}
+ vm.options[0].selected = false;
} else {
dbg (1, RN + ": cant find vlanmap field");
}
@@ -34,6 +35,12 @@
unHighLightList("switch");
sw.options[sw.options.length-1].selected = true;
sortList("switch");
+ unHighLightList("vlanmap");
+ var vm = document.getElementById("vlanmap");
+ if (vm) {
+ for(i = vm.options.length-1 ; i > 0 ; i--)
+ vm.options[i] = undefined;
+ }
} else {
dbg (1, RN + ": switch already exists: " + o.value);
}
|