--- loncom/interface/domainprefs.pm 2018/07/25 20:23:31 1.335
+++ loncom/interface/domainprefs.pm 2018/10/22 13:46:14 1.339
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler to set domain-wide configuration settings
#
-# $Id: domainprefs.pm,v 1.335 2018/07/25 20:23:31 raeburn Exp $
+# $Id: domainprefs.pm,v 1.339 2018/10/22 13:46:14 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2817,27 +2817,40 @@ sub lti_toggle_js {
// '.&mt('Other').
'
'.
''.
- '
';
- foreach my $extra ('passback','roster') {
+ '';
+ my ($pb1p1chk,$pb1p0chk,$onclickpb);
+ foreach my $extra ('roster','passback') {
my $checkedon = '';
my $checkedoff = ' checked="checked"';
+ if ($extra eq 'passback') {
+ $pb1p1chk = ' checked="checked"';
+ $pb1p0chk = '';
+ $onclickpb = ' onclick="toggleLTI(this.form,'."'passback','$num'".');"';
+ } else {
+ $onclickpb = '';
+ }
if (ref($current) eq 'HASH') {
if (($current->{$extra})) {
$checkedon = $checkedoff;
$checkedoff = '';
+ if ($extra eq 'passback') {
+ $passbacksty = 'inline-block';
+ }
+ if ($current->{'passbackformat'} eq '1.0') {
+ $pb1p0chk = ' checked="checked"';
+ $pb1p1chk = '';
+ }
}
}
$output .= $lt{$extra}.' '.
- '