--- loncom/interface/lonmodifycourse.pm 2013/11/13 00:09:28 1.64 +++ loncom/interface/lonmodifycourse.pm 2014/01/15 18:47:56 1.66 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # handler for DC-only modifiable course settings # -# $Id: lonmodifycourse.pm,v 1.64 2013/11/13 00:09:28 raeburn Exp $ +# $Id: lonmodifycourse.pm,v 1.66 2014/01/15 18:47:56 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -449,6 +449,8 @@ sub print_setquota { $uploadquota = $domdefs{$lctype.'quota'}; } elsif ($settings{'internal.instcode'}) { $uploadquota = $domdefs{'officialquota'}; + } elsif ($settings{'internal.textbook'}) { + $uploadquota = $domdefs{'textbookquota'}; } else { $uploadquota = $domdefs{'unofficialquota'}; } @@ -994,18 +996,19 @@ sub modify_course { $reply = '
'.$reply.'
'."\n". ''; + $reply .= &Apache::lonhtmlcommon::actionbox(\@actions).''; $r->print($reply); return; } @@ -1636,7 +1639,7 @@ sub hidden_form_elements { sub showcredits { my ($dom) = @_; my %domdefaults = &Apache::lonnet::get_domain_defaults($dom); - if ($domdefaults{'officialcredits'} || $domdefaults{'unofficialcredits'}) { + if ($domdefaults{'officialcredits'} || $domdefaults{'unofficialcredits'} || $domdefaults{'textbokcredits'}) { return 1; } }