[LON-CAPA-cvs] cvs: loncom /interface lonpickcourse.pm

raeburn lon-capa-cvs@mail.lon-capa.org
Thu, 23 Dec 2004 18:46:49 -0000


raeburn		Thu Dec 23 13:46:49 2004 EDT

  Modified files:              
    /loncom/interface	lonpickcourse.pm 
  Log:
  Revert to a single selection selectbox when course has no existing sections. 
  
  
Index: loncom/interface/lonpickcourse.pm
diff -u loncom/interface/lonpickcourse.pm:1.21 loncom/interface/lonpickcourse.pm:1.22
--- loncom/interface/lonpickcourse.pm:1.21	Mon Nov 29 19:21:24 2004
+++ loncom/interface/lonpickcourse.pm	Thu Dec 23 13:46:48 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Pick a course
 #
-# $Id: lonpickcourse.pm,v 1.21 2004/11/30 00:21:24 raeburn Exp $
+# $Id: lonpickcourse.pm,v 1.22 2004/12/23 18:46:48 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -153,6 +153,8 @@
     var sectionsArray = new Array("$seclist")
     opener.document.$ENV{"form.form"}.currsec.length = 0
     if (numSections == 0) {
+        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 {