[LON-CAPA-cvs] cvs: loncom /interface lonpickcourse.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Fri, 14 Oct 2005 19:11:56 -0000
albertel Fri Oct 14 15:11:56 2005 EDT
Modified files:
/loncom/interface lonpickcourse.pm
Log:
- letting those else's know that they are loved
Index: loncom/interface/lonpickcourse.pm
diff -u loncom/interface/lonpickcourse.pm:1.33 loncom/interface/lonpickcourse.pm:1.34
--- loncom/interface/lonpickcourse.pm:1.33 Fri Oct 14 14:43:13 2005
+++ loncom/interface/lonpickcourse.pm Fri Oct 14 15:11:56 2005
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Pick a course
#
-# $Id: lonpickcourse.pm,v 1.33 2005/10/14 18:43:13 albertel Exp $
+# $Id: lonpickcourse.pm,v 1.34 2005/10/14 19:11:56 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -186,8 +186,7 @@
for (var j=0; j<opener.document.$env{'form.form'}.coursepick.length; j++) {
if (opener.document.$env{'form.form'}.coursepick[j].value == 'specific') {
opener.document.$env{'form.form'}.coursepick[j].checked = true;
- }
- else {
+ } else {
opener.document.$env{'form.form'}.coursepick[j].checked = false;
}
}
@@ -196,14 +195,12 @@
courses = courses.substr(0,courses.length-2);
opener.document.$env{'form.form'}.courselist.value = courses;
}
- }
- else {
+ } else {
$name_code
opener.document.$env{'form.form'}.$env{'form.cnumelement'}.value=cname;
if (openerForm == 'cu') {
opener.document.$env{'form.form'}.$env{'form.cdomelement'}.value=cdom;
- }
- else {
+ } else {
var slct=opener.document.$env{'form.form'}.$env{'form.cdomelement'};
var i;
for (i=0;i<slct.length;i++) {
@@ -223,24 +220,21 @@
opener.document.$env{"form.form"}.currsec.multiple=false
opener.document.$env{"form.form"}.currsec.size=1;
opener.document.$env{"form.form"}.currsec.options[0] = new Option('No existing sections','',false,false)
- }
- else {
+ } else {
if (numSections == 1) {
opener.document.$env{"form.form"}.currsec.multiple=false;
opener.document.$env{"form.form"}.currsec.size=1;
opener.document.$env{"form.form"}.currsec.options[0] = new Option('Select','',true,true);
opener.document.$env{"form.form"}.currsec.options[1] = new Option('No section','',false,false)
opener.document.$env{"form.form"}.currsec.options[2] = new Option(sectionsArray[0],sectionsArray[0],false,false);
- }
- else {
+ } else {
for (var i=0; i<numSections; i++) {
opener.document.$env{"form.form"}.currsec.options[i] = new Option(sectionsArray[i],sectionsArray[i],false,false)
}
opener.document.$env{"form.form"}.currsec.multiple=true
if (numSections < 3) {
opener.document.$env{"form.form"}.currsec.size=numSections;
- }
- else {
+ } else {
opener.document.$env{"form.form"}.currsec.size=3;
}
opener.document.$env{"form.form"}.currsec.options[0].selected = false