version 1.21.4.12, 2021/12/13 20:09:54
|
version 1.21.4.14, 2024/07/03 16:35:11
|
Line 218 $jscript
|
Line 218 $jscript
|
$onload .= "toggleWAF();checkWAF();updateWAF();"; |
$onload .= "toggleWAF();checkWAF();updateWAF();"; |
} |
} |
if (grep(/^scantron$/,@actions)) { |
if (grep(/^scantron$/,@actions)) { |
$onload .= "toggleScantron('document.display');"; |
$onload .= "toggleScantron(document.display);"; |
} |
} |
if (grep(/^autoupdate$/,@actions)) { |
if (grep(/^autoupdate$/,@actions)) { |
$onload .= "toggleLastActiveDays('document.display');"; |
$onload .= "toggleLastActiveDays(document.display);"; |
|
} |
|
if (grep(/^autoenroll$/,@actions)) { |
|
$onload .= "toggleFailsafe(document.display);"; |
} |
} |
if (grep(/^login$/,@actions)) { |
if (grep(/^login$/,@actions)) { |
my %domservers = &Apache::lonnet::get_servers($dom); |
my %domservers = &Apache::lonnet::get_servers($dom); |
Line 236 $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)); |