Diff for /rat/lonpage.pm between versions 1.111.2.13.2.4 and 1.111.2.13.2.6

version 1.111.2.13.2.4, 2022/10/05 22:59:06 version 1.111.2.13.2.6, 2023/09/11 12:11:26
Line 268  sub handler { Line 268  sub handler {
                   my $nforms=0;                    my $nforms=0;
                   my $nuploads=0;                    my $nuploads=0;
                   my $ntimers=0;                    my $ntimers=0;
                     my $hasnumresp;
                   my %turninpaths;                    my %turninpaths;
                   my %multiresps;                    my %multiresps;
                   my $turninparent;                    my $turninparent;
Line 515  ENDEXT Line 516  ENDEXT
                                       $ntimers++;                                        $ntimers++;
                                       $hastimer = 1;                                        $hastimer = 1;
                                   }                                    }
                                     unless ($hasnumresp) {
                                         if ($output=~/\<input[^\>]+class\s*=\s*[\'\"]*([^\'\"\>]+|)LC_numresponse_text/) {
                                             $hasnumresp = 1;
                                         }
                                     }
                                   $output=~                                    $output=~
       s/\<((?:input|select|button|textarea)[^\>]+)name\s*\=\s*[\'\"]*([^\'\"]+)[\'\"]*([^\>]*)\>/\<$1 name="$prefix$2" $3\>/gsi;        s/\<((?:input|select|button|textarea)[^\>]+)name\s*\=\s*[\'\"]*([^\'\"]+)[\'\"]*([^\>]*)\>/\<$1 name="$prefix$2" $3\>/gsi;
                                   $output=~                                    $output=~
Line 956  ENDEXT Line 962  ENDEXT
                           &mt('Processing your submission ...').'</div></form>');                            &mt('Processing your submission ...').'</div></form>');
                       }                        }
       unless (($target eq 'tex') || ($target eq 'tex_answer')) {        unless (($target eq 'tex') || ($target eq 'tex_answer')) {
   $r->print(&Apache::loncommon::end_page({'discussion'                            my $args = {'discussion' => 1};
       => 1,}));                            if ($hasnumresp) {
                                 $args->{'dashjs'} = 1;
                             }
     $r->print(&Apache::loncommon::end_page($args));
       } else {        } else {
   $r->print('\end{document}'.$number_of_columns);    $r->print('\end{document}'.$number_of_columns);
       }        }
Line 1016  sub get_buttons { Line 1025  sub get_buttons {
     my ($aname,$shownsymb);      my ($aname,$shownsymb);
     if (($hash->{'encrypted_'.$rid}) && (!$env{'request.role.adv'})) {      if (($hash->{'encrypted_'.$rid}) && (!$env{'request.role.adv'})) {
         $aname = 'LC_'.$rid;          $aname = 'LC_'.$rid;
           $shownsymb = &Apache::lonenc::encrypted($symb);
     } else {      } else {
         $shownsymb = $symb;          $shownsymb = $symb;
         my $dispsymb = $symb;          my $dispsymb = $symb;

Removed from v.1.111.2.13.2.4  
changed lines
  Added in v.1.111.2.13.2.6


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