Diff for /loncom/interface/lonuserutils.pm between versions 1.118 and 1.119

version 1.118, 2010/03/21 14:58:40 version 1.119, 2010/05/22 01:11:53
Line 4395  sub update_user_list { Line 4395  sub update_user_list {
     my ($r,$context,$setting,$choice,$crstype) = @_;      my ($r,$context,$setting,$choice,$crstype) = @_;
     my $now = time;      my $now = time;
     my $count=0;      my $count=0;
     my $crstype;  
     if ($context eq 'course') {      if ($context eq 'course') {
         $crstype = &Apache::loncommon::course_type();          $crstype = &Apache::loncommon::course_type();
     }      }
Line 4936  sub setsections_javascript { Line 4935  sub setsections_javascript {
                     accr => 'A course coordinator role will be added with access to all sections.',                      accr => 'A course coordinator role will be added with access to all sections.',
                     acor => 'A coordinator role will be added with access to all sections',                      acor => 'A coordinator role will be added with access to all sections',
                     inea => 'In each course, each user may only have one student role at a time.',                      inea => 'In each course, each user may only have one student role at a time.',
                     inec => 'In each community, each user may only have on member role at a time.',                      inec => 'In each community, each user may only have one member role at a time.',
                     youh => 'You had selected ',                      youh => 'You had selected ',
                     secs => 'sections.',                      secs => 'sections.',
                     plmo => 'Please modify your selections so they include no more than one section.',                      plmo => 'Please modify your selections so they include no more than one section.',
Line 4974  function setSections(formname,crstype) { Line 4973  function setSections(formname,crstype) {
                     for (var j=0; j<formname.elements[num].length; j++) {                      for (var j=0; j<formname.elements[num].length; j++) {
                         if (formname.elements[num].options[j].selected == true ) {                          if (formname.elements[num].options[j].selected == true ) {
                             var addsec = formname.elements[num].options[j].value;                              var addsec = formname.elements[num].options[j].value;
                             if (addsec != "") {                              if ((addsec != "") && (addsec != null)) {
                                 fromexisting.push(addsec);                                  fromexisting.push(addsec);
                                 if (numsec == 0) {                                  if (numsec == 0) {
                                     sections = addsec;                                      sections = addsec;

Removed from v.1.118  
changed lines
  Added in v.1.119


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