--- loncom/interface/lonconfigsettings.pm 2013/04/08 23:21:15 1.24 +++ loncom/interface/lonconfigsettings.pm 2013/09/07 00:19:00 1.26 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to set domain-wide configuration settings # -# $Id: lonconfigsettings.pm,v 1.24 2013/04/08 23:21:15 raeburn Exp $ +# $Id: lonconfigsettings.pm,v 1.26 2013/09/07 00:19:00 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -188,7 +188,7 @@ sub make_changes { {href=>"javascript:changePage(document.$phase,'$phase')", text=>"Updated"}); &print_header($r,$phase,$context,undef,$container); - my $crstype; + my ($crstype,$lastact); if ($context eq 'course') { $crstype = &Apache::loncommon::course_type(); } @@ -199,7 +199,7 @@ sub make_changes { if ($context eq 'domain') { $r->print('

'.&mt($prefs->{$item}{'text'}).'

'. &Apache::domainprefs::process_changes($r,$dom, - $confname,$item,$roles,$values)); + $confname,$item,$roles,$values,\$lastact)); } else { $changes{$item} = {}; &Apache::courseprefs::process_changes($dom,$item,$values, @@ -244,6 +244,7 @@ sub make_changes { } &print_footer($r,$phase,'display',$footer_text,\@actions,$container); $r->print('

'); + return $lastact; } sub display_settings { @@ -295,6 +296,9 @@ sub display_settings { } $r->print(''); } + if ($container) { + &Apache::lonparmset::endSettingsScreen($r); + } $r->print(&Apache::loncommon::end_page()); return; } @@ -351,6 +355,9 @@ sub display_choices { } $r->print(&print_footer($r,$phase,'display','Display',undef,$container)); $r->print(''); + if ($container) { + &Apache::lonparmset::endSettingsScreen($r); + } $r->print(&Apache::loncommon::end_page()); return; }