version 1.21.4.13, 2021/12/28 02:32:31
|
version 1.21.4.14, 2024/07/03 16:35:11
|
Line 239 $jscript
|
Line 239 $jscript
|
$additem = {'add_entries' => \%loaditems,}; |
$additem = {'add_entries' => \%loaditems,}; |
} |
} |
} elsif ($context eq 'course') { |
} elsif ($context eq 'course') { |
|
my $onload; |
if (grep(/^courseinfo$/,@actions)) { |
if (grep(/^courseinfo$/,@actions)) { |
if (@code_order) { |
if (@code_order) { |
$additem = { |
$onload = "courseSet('','load');toggleCloners(document.display.cloners_instcode);"; |
add_entries => {'onload' => "courseSet('','load');toggleCloners(document.display.cloners_instcode);"}, |
|
}; |
|
} |
} |
} |
} |
|
if (grep(/^grading$/,@actions)) { |
|
$onload .= 'toggleGrading(document.display);toggleHiddenTotalsSec(document.display);'; |
|
} |
|
if ($onload) { |
|
my %loaditems = ( |
|
'onload' => $onload, |
|
); |
|
$additem = {'add_entries' => \%loaditems,}; |
|
} |
} |
} |
} |
} |
$r->print(&Apache::loncommon::start_page($pagetitle,$js,$additem)); |
$r->print(&Apache::loncommon::start_page($pagetitle,$js,$additem)); |