Diff for /loncom/interface/lonconfigsettings.pm between versions 1.44 and 1.53

version 1.44, 2018/08/14 21:42:40 version 1.53, 2021/09/21 22:54:26
Line 221  $jscript Line 221  $jscript
                            "toggleLTI(document.display,'sec','add');".                             "toggleLTI(document.display,'sec','add');".
                            "toggleLTI(document.display,'lcauth','add');".                             "toggleLTI(document.display,'lcauth','add');".
                            "toggleLTI(document.display,'lcmenu','add');".                             "toggleLTI(document.display,'lcmenu','add');".
                            "toggleLTI(document.display,'passback','add');";                             "toggleLTI(document.display,'passback','add');".
                              "toggleLTI(document.display,'callback','add');";
                 if (ref($values) eq 'HASH') {                  if (ref($values) eq 'HASH') {
                     if (ref($values->{'lti'}) eq 'HASH') {                      if (ref($values->{'lti'}) eq 'HASH') {
                         my $numlti = scalar(keys(%{$values->{'lti'}}));                          my $numlti = scalar(keys(%{$values->{'lti'}}));
Line 231  $jscript Line 232  $jscript
                                        "toggleLTI(document.display,'sec','$i');".                                         "toggleLTI(document.display,'sec','$i');".
                                        "toggleLTI(document.display,'lcauth','$i');".                                         "toggleLTI(document.display,'lcauth','$i');".
                                        "toggleLTI(document.display,'lcmenu','$i');".                                         "toggleLTI(document.display,'lcmenu','$i');".
                                        "toggleLTI(document.display,'passback','$i');";                                         "toggleLTI(document.display,'passback','$i');".
                                          "toggleLTI(document.display,'callback','$i');";
                         }                          }
                     }                      }
                 }                  }
Line 251  $jscript Line 253  $jscript
                     }                      }
                 }                  }
             }              }
               if (grep(/^wafproxy$/,@actions)) {
                   $onload .= "toggleWAF();checkWAF();updateWAF();";
               }
               if (grep(/^proctoring$/,@actions)) {
                   $onload .= "toggleProctoring(document.display,'proctorio');".
                              "toggleProctoring(document.display,'examity');";
               }
               if (grep(/^scantron$/,@actions)) {
                   $onload .= "toggleScantron('document.display');";
               }
               if (grep(/^autoupdate$/,@actions)) {
                   $onload .= "toggleLastActiveDays('document.display');";
               }
               if (grep(/^login$/,@actions)) {
                   my %domservers = &Apache::lonnet::get_servers($dom);
                   foreach my $server (sort(keys(%domservers))) {
                       $onload .= "toggleSamlOptions(document.display,'$server');";
                   }
               }
             if ($onload) {              if ($onload) {
                 my %loaditems = (                  my %loaditems = (
                                   'onload' => $onload,                                    'onload' => $onload,
Line 343  sub make_changes { Line 364  sub make_changes {
        {href=>"javascript:changePage(document.$phase,'$phase')",         {href=>"javascript:changePage(document.$phase,'$phase')",
         text=>"Updated"});          text=>"Updated"});
     &print_header($r,$phase,$context,undef,$container);      &print_header($r,$phase,$context,undef,$container);
     my ($crstype,%lastact);      my ($crstype,%lastact,$errors);
     if ($context eq 'course') {      if ($context eq 'course') {
         $crstype = &Apache::loncommon::course_type();          $crstype = &Apache::loncommon::course_type();
     }      }
Line 357  sub make_changes { Line 378  sub make_changes {
                                           $confname,$item,$roles,$values,\%lastact));                                            $confname,$item,$roles,$values,\%lastact));
                 } else {                  } else {
                     $changes{$item} = {};                      $changes{$item} = {};
                     &Apache::courseprefs::process_changes($dom,$item,$values,                      $errors =
                                                           $prefs->{$item},$changes{$item},                          &Apache::courseprefs::process_changes($dom,$confname,$item,$values,
                                                           $allitems,\%disallowed,$crstype);                                                                $prefs->{$item},$changes{$item},
                                                                 $allitems,\%disallowed,$crstype);
                     if (keys(%{$changes{$item}}) > 0) {                      if (keys(%{$changes{$item}}) > 0) {
                         $numchanged ++;                          $numchanged ++;
                     }                      }
Line 391  sub make_changes { Line 413  sub make_changes {
             }              }
             $r->print('</p>');              $r->print('</p>');
         }          }
           if ($errors) {
               $r->print('<p>'.$errors.'</p>');
           }
     }      }
     $r->print('<p>');      $r->print('<p>');
     my $footer_text = 'Back to configuration display';      my $footer_text = 'Back to configuration display';
Line 547  sub display_choices { Line 572  sub display_choices {
                 $thirddiv = 1;                  $thirddiv = 1;
             }              }
         }          }
         $r->print('</div><br clear="all" />');  
     }      }
       $r->print('</div><div style="padding:0;clear:both;margin:0;border:0"></div>');
     $r->print(&print_footer($r,$phase,'display','Display',undef,$container,$parm_permission));      $r->print(&print_footer($r,$phase,'display','Display',undef,$container,$parm_permission));
     $r->print('</form>');      $r->print('</form>');
     if ($container) {      if ($container) {

Removed from v.1.44  
changed lines
  Added in v.1.53


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