Diff for /loncom/homework/rankresponse.pm between versions 1.74 and 1.75

version 1.74, 2018/06/07 15:58:11 version 1.75, 2025/01/25 23:24:23
Line 408  sub displayfoils { Line 408  sub displayfoils {
         }          }
         foreach my $name (@whichfoils) {          foreach my $name (@whichfoils) {
     my $lastopt=$lastresponse{$name};      my $lastopt=$lastresponse{$name};
               my $text=$Apache::response::foilgroup{$name.'.text'};
     my $optionlist='';      my $optionlist='';
     if ($target ne 'tex') {      if ($target ne 'tex') {
                 $optionlist = "<option value=\"\"></option>\n";                  $optionlist = "<option value=\"\"></option>\n";
Line 433  sub displayfoils { Line 434  sub displayfoils {
  }    } 
     }      }
     if ($target ne 'tex' && $Apache::lonhomework::type ne 'exam') {      if ($target ne 'tex' && $Apache::lonhomework::type ne 'exam') {
                   my $labeltext = &mt('Choose ranking for:').' '.$text;
  $optionlist='<select onchange="javascript:setSubmittedPart(\''.   $optionlist='<select onchange="javascript:setSubmittedPart(\''.
   $part.'\');" name="HWVAL_'.    $part.'\');" name="HWVAL_'.
     $Apache::inputtags::response[-1].':'.$temp.'">'.      $Apache::inputtags::response[-1].':'.$temp.'" aria-label="'.$labeltext.'">'.
         $optionlist."</select>\n";          $optionlist."</select>\n";
     } elsif ($env{'form.pdfFormFields'} eq 'yes') {      } elsif ($env{'form.pdfFormFields'} eq 'yes') {
                 #do nothing                  #do nothing
             } else {              } else {
  $optionlist=' '.$temp.' '.$optionlist.' ';   $optionlist=' '.$temp.' '.$optionlist.' ';
     }      }
     my $text=$Apache::response::foilgroup{$name.'.text'};  
     if ($target ne 'tex') {      if ($target ne 'tex') {
                 $result .= '<div class="LC_rankfoil">';                  $result .= '<div class="LC_rankfoil">';
  if ($Apache::lonhomework::type ne 'exam') {   if ($Apache::lonhomework::type ne 'exam') {

Removed from v.1.74  
changed lines
  Added in v.1.75


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