--- loncom/interface/domainprefs.pm 2018/07/26 14:59:48 1.336 +++ loncom/interface/domainprefs.pm 2018/08/14 21:42:39 1.337 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to set domain-wide configuration settings # -# $Id: domainprefs.pm,v 1.336 2018/07/26 14:59:48 raeburn Exp $ +# $Id: domainprefs.pm,v 1.337 2018/08/14 21:42:39 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}.' '. - '