version 1.21.4.9.6.1, 2020/04/09 20:34:29
|
version 1.21.4.9.6.2, 2020/05/22 22:38:55
|
Line 176 $jscript
|
Line 176 $jscript
|
$additem = {'add_entries' => \%loaditems,}; |
$additem = {'add_entries' => \%loaditems,}; |
} elsif ($phase eq 'display') { |
} elsif ($phase eq 'display') { |
if ($context eq 'domain') { |
if ($context eq 'domain') { |
|
my $onload; |
if (grep(/^coursedefaults$/,@actions)) { |
if (grep(/^coursedefaults$/,@actions)) { |
my %loaditems = ( |
$onload = "toggleDisplay(document.display,'cloneinstcode');". |
' onload' => "toggleDisplay(document.display,'cloneinstcode');". |
"toggleDisplay(document.display,'credits');". |
"toggleDisplay(document.display,'credits');". |
"toggleDisplay(document.display,'studentsubmission');"; |
"toggleDisplay(document.display,'studentsubmission');", |
|
); |
|
$additem = {'add_entries' => \%loaditems,}; |
|
} |
} |
if (grep(/^ltitools$/,@actions)) { |
if (grep(/^ltitools$/,@actions)) { |
$onload .= "toggleLTITools(document.display,'user','add');"; |
$onload .= "toggleLTITools(document.display,'user','add');"; |
Line 195 $jscript
|
Line 193 $jscript
|
} |
} |
} |
} |
} |
} |
|
if ($onload) { |
|
my %loaditems = ( |
|
'onload' => $onload, |
|
); |
|
$additem = {'add_entries' => \%loaditems,}; |
|
} |
} elsif ($context eq 'course') { |
} elsif ($context eq 'course') { |
if (grep(/^courseinfo$/,@actions)) { |
if (grep(/^courseinfo$/,@actions)) { |
if (@code_order) { |
if (@code_order) { |