version 1.38, 2017/10/15 04:05:10
|
version 1.39, 2017/11/30 12:45:55
|
Line 40 use Apache::courseclassifier();
|
Line 40 use Apache::courseclassifier();
|
use LONCAPA qw(:DEFAULT :match); |
use LONCAPA qw(:DEFAULT :match); |
|
|
sub print_header { |
sub print_header { |
my ($r,$phase,$context,$jscript,$container,$instcode,$dom) = @_; |
my ($r,$phase,$context,$jscript,$container,$instcode,$dom,$values) = @_; |
my ($pagetitle,$brcrumtitle,$action,$call_category_check,$instcode_check, |
my ($pagetitle,$brcrumtitle,$action,$call_category_check,$instcode_check, |
$crstype,@actions,@code_order); |
$crstype,@actions,@code_order); |
if ($phase eq 'display') { |
if ($phase eq 'display') { |
Line 215 $jscript
|
Line 215 $jscript
|
my $optionsprefix = 'LC_options_helpdesk_'; |
my $optionsprefix = 'LC_options_helpdesk_'; |
$onload .= "toggleHelpdeskRow(document.display,'overrides','$customclass','$optionsprefix');"; |
$onload .= "toggleHelpdeskRow(document.display,'overrides','$customclass','$optionsprefix');"; |
} |
} |
|
if (grep(/^ltitools$/,@actions)) { |
|
$onload .= "toggleLTITools(document.display,'passback','add');". |
|
"toggleLTITools(document.display,'roster','add');"; |
|
if (ref($values) eq 'HASH') { |
|
if (ref($values->{'ltitools'}) eq 'HASH') { |
|
my $numltitools = scalar(keys(%{$values->{'ltitools'}})); |
|
for (my $i=0; $i<$numltitools; $i++) { |
|
$onload .= "toggleLTITools(document.display,'passback','$i');". |
|
"toggleLTITools(document.display,'roster','$i');"; |
|
} |
|
} |
|
} |
|
} |
if ($onload) { |
if ($onload) { |
my %loaditems = ( |
my %loaditems = ( |
'onload' => $onload, |
'onload' => $onload, |
Line 378 sub display_settings {
|
Line 391 sub display_settings {
|
if (ref($values) eq 'HASH') { |
if (ref($values) eq 'HASH') { |
$instcode = $values->{'internal.coursecode'}; |
$instcode = $values->{'internal.coursecode'}; |
} |
} |
&print_header($r,$phase,$context,$jscript,$container,$instcode,$dom); |
&print_header($r,$phase,$context,$jscript,$container,$instcode,$dom,$values); |
my $divwidth = 900; |
my $divwidth = 900; |
if ((ref($prefs_order) eq 'ARRAY') && (ref($prefs) eq 'HASH') && (ref($values) eq 'HASH')) { |
if ((ref($prefs_order) eq 'ARRAY') && (ref($prefs) eq 'HASH') && (ref($values) eq 'HASH')) { |
if (@actions > 0) { |
if (@actions > 0) { |