Diff for /rat/lonwrapper.pm between versions 1.49.2.11.2.4 and 1.80

version 1.49.2.11.2.4, 2023/07/06 19:53:17 version 1.80, 2022/10/27 21:35:30
Line 334  ENDLINK Line 334  ENDLINK
             }              }
         });          });
         window.onload = function(){          window.onload = function(){
             if (LCresizedef) {               if (LCresizedef) {
                 LCnotready = 0;                   LCnotready = 0;
                 \$(window).trigger('resize');                   \$(window).trigger('resize');
             } else {               } else {
                 LCnotready = 1;                   LCnotready = 1;
             }               }
         };          };
 SCRIPT  SCRIPT
         # javascript will position the iframe if window was resized (or zoomed)          # javascript will position the iframe if window was resized (or zoomed)
Line 425  sub handler { Line 425  sub handler {
         my %toolhash = &Apache::lonnet::get('exttool_'.$marker,['target','linktext','explanation','id','width','height'],          my %toolhash = &Apache::lonnet::get('exttool_'.$marker,['target','linktext','explanation','id','width','height'],
                                             $cdom,$cnum);                                              $cdom,$cnum);
         if ($toolhash{'id'}) {          if ($toolhash{'id'}) {
             my ($idx,%ltitools);              my %ltitools = &Apache::lonnet::get_domain_lti($cdom,'consumer');
             if ($toolhash{'id'} =~ /^c(\d+)$/) {              if (ref($ltitools{$toolhash{'id'}}) eq 'HASH') {
                 $idx = $1;                  $exttoolremote = $ltitools{$toolhash{'id'}}{'url'};
                 %ltitools = &Apache::lonnet::get_course_lti($cnum,$cdom,'consumer');  
             } else {  
                 $idx = $toolhash{'id'};  
                 %ltitools = &Apache::lonnet::get_domain_lti($cdom,'consumer');  
             }  
             if (ref($ltitools{$idx}) eq 'HASH') {  
                 $exttoolremote = $ltitools{$idx}{'url'};  
             }              }
         }          }
         if ($toolhash{'target'} eq 'window') {          if ($toolhash{'target'} eq 'window') {
Line 491  sub handler { Line 484  sub handler {
                     $title = &mt('External Tool');                      $title = &mt('External Tool');
                 }                  }
             }              }
             $title = &HTML::Entities::encode($title,'\'"<>&');  
             $is_supp = 1;              $is_supp = 1;
             if ($env{'request.course.id'}) {              if ($env{'request.course.id'}) {
                 $cnum = $env{'course.'.$env{'request.course.id'}.'.num'};                  $cnum = $env{'course.'.$env{'request.course.id'}.'.num'};
Line 514  sub handler { Line 506  sub handler {
                 &Apache::loncommon::validate_folderpath(1,'',$cnum,$cdom);                  &Apache::loncommon::validate_folderpath(1,'',$cnum,$cdom);
             }              }
             my $title = $env{'form.title'};              my $title = $env{'form.title'};
             $title = &HTML::Entities::encode($title,'\'"<>&');  
             my $crstype = &Apache::loncommon::course_type();              my $crstype = &Apache::loncommon::course_type();
             $brcrum =              $brcrum =
                 &Apache::lonhtmlcommon::docs_breadcrumbs(undef,$crstype,undef,$title,1);                  &Apache::lonhtmlcommon::docs_breadcrumbs(undef,$crstype,undef,$title,1);

Removed from v.1.49.2.11.2.4  
changed lines
  Added in v.1.80


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