Diff for /loncom/interface/lonpickcourse.pm between versions 1.22 and 1.23

version 1.22, 2004/12/23 18:46:48 version 1.23, 2004/12/28 05:55:11
Line 158  function setSections() { Line 158  function setSections() {
         opener.document.$ENV{"form.form"}.currsec.options[0] = new Option('No existing sections','',false,false)          opener.document.$ENV{"form.form"}.currsec.options[0] = new Option('No existing sections','',false,false)
     }      }
     else {      else {
         for (var i=0; i<numSections; i++) {          if (numSections == 1) {
             opener.document.$ENV{"form.form"}.currsec.options[i] = new Option(sectionsArray[i],sectionsArray[i],false,false)              opener.document.$ENV{"form.form"}.currsec.multiple=false;
         }              opener.document.$ENV{"form.form"}.currsec.size=1;
         opener.document.$ENV{"form.form"}.currsec.multiple=true              opener.document.$ENV{"form.form"}.currsec.options[0] = new Option('Select','',true,true);
         if (numSections < 3) {              opener.document.$ENV{"form.form"}.currsec.options[1] = new Option('No section','',false,false) 
             opener.document.$ENV{"form.form"}.currsec.size=numSections;              opener.document.$ENV{"form.form"}.currsec.options[2] = new Option(sectionsArray[0],sectionsArray[0],false,false);
         }          }
         else {          else {
             opener.document.$ENV{"form.form"}.currsec.size=3;              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 {
                   opener.document.$ENV{"form.form"}.currsec.size=3;
               }
               opener.document.$ENV{"form.form"}.currsec.options[0].selected = false
         }          }
         opener.document.$ENV{"form.form"}.currsec.options[0].selected = false  
     }      }
     self.close()      self.close()
 }  }

Removed from v.1.22  
changed lines
  Added in v.1.23


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>