--- loncom/interface/londocs.pm 2003/02/25 19:30:51 1.50 +++ loncom/interface/londocs.pm 2003/04/12 15:56:42 1.51 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.50 2003/02/25 19:30:51 www Exp $ +# $Id: londocs.pm,v 1.51 2003/04/12 15:56:42 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -620,12 +620,20 @@ ENDCOURSEVERIFY ($allowed?' '.$help{'Main_Course_Documents'}:'').''); my $folder=$ENV{'form.folder'}; unless ($folder=~/^default/) { $folder='default'; } + my $postexec=''; + if ($folder eq 'default') { + $r->print(''); + } else { + $postexec='self.close();'; + } $hadchanges=0; &editor($r,$coursenum,$coursedom,$folder,$allowed); if ($hadchanges) { - $r->print('
'. -'

Changes will become active for your current session after , or the next time you log in.

'); + $r->print( +''. +'
'. +'

Changes will become active for your current session after , or the next time you log in.

'); } my $folderseq='/uploaded/'.$coursedom.'/'.$coursenum.'/default_'.time. '.sequence';