--- loncom/interface/lonconfigsettings.pm 2023/06/04 00:06:10 1.71 +++ loncom/interface/lonconfigsettings.pm 2024/07/14 16:05:27 1.73 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to set domain-wide configuration settings # -# $Id: lonconfigsettings.pm,v 1.71 2023/06/04 00:06:10 raeburn Exp $ +# $Id: lonconfigsettings.pm,v 1.73 2024/07/14 16:05:27 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -390,6 +390,9 @@ $jscript if (grep(/^localization$/,@actions)) { $onload .= "toggleTimeZone();"; } + if (grep(/^grading$/,@actions)) { + $onload .= 'toggleGrading(document.display);toggleHiddenTotalsSec(document.display);'; + } if ($onload) { my %loaditems = ( 'onload' => $onload, @@ -653,8 +656,8 @@ sub make_changes { if ($context eq 'course') { $footer_text = 'Back to display/edit settings'; } - &print_footer($r,$phase,'display',$footer_text,\@actions,$container,$parm_permission); $r->print('

'); + &print_footer($r,$phase,'display',$footer_text,\@actions,$container,$parm_permission); return \%lastact; }