[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm
matthew
lon-capa-cvs@mail.lon-capa.org
Tue, 04 Nov 2003 21:21:36 -0000
matthew Tue Nov 4 16:21:36 2003 EDT
Modified files:
/loncom/interface loncommon.pm
Log:
Fix javascript error - the .value of the <option> was not being set so the
.name was passed through instead. This caused specification of a server
in londropadd.pm to fail.
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.142 loncom/interface/loncommon.pm:1.143
--- loncom/interface/loncommon.pm:1.142 Tue Nov 4 14:01:01 2003
+++ loncom/interface/loncommon.pm Tue Nov 4 16:21:35 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.142 2003/11/04 19:01:01 albertel Exp $
+# $Id: loncommon.pm,v 1.143 2003/11/04 21:21:35 matthew Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -521,6 +521,7 @@
// in with the nuclear
for (i=0;i<values.length; i++) {
$second.options[i] = new Option(values[i]);
+ $second.options[i].value = values[i];
$second.options[i].text = texts[i];
if (values[i] == select2def) {
$second.options[i].selected = true;