--- loncom/interface/londocs.pm 2009/03/10 22:15:43 1.355 +++ loncom/interface/londocs.pm 2009/03/16 21:44:38 1.356 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.355 2009/03/10 22:15:43 ehlerst Exp $ +# $Id: londocs.pm,v 1.356 2009/03/16 21:44:38 tempelho Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2891,7 +2891,7 @@ HIDDENFORM my $activeClass = 1; my $active = ''; $r->print('
'); # --------------------------------------------------------- Standard documents - if (($standard) && ($allowed) && (!$forcesupplement)) { + my $savefolderpath; my $active = 'style="display: none;"'; if($activeClass == 0){ $active = 'style="display: block;"'; @@ -2916,8 +2916,9 @@ HIDDENFORM $r->print(&Apache::loncommon::help_open_topic('Docs_Adding_Course_Doc', &mt('Editing the Table of Contents for your '.$type))); my $folder=$env{'form.folder'}; - if ($folder eq '' || $folder eq 'supplemental') { + if ($folder eq '' || $folder=~/^supplemental/) { $folder='default'; + $savefolderpath = $env{'form.folderpath'}; $env{'form.folderpath'}='default&'.&escape(&mt('Main '.$type.' Documents')); $uploadtag = ''; @@ -3154,9 +3155,7 @@ $r->print(&generate_edit_table($tid,$con $r->print('
'); if ($env{'form.pagepath'}) { } - } # ----------------------------------------------------- Supplemental documents - if (!$forcestandard) { my $active = 'style="display: none;"'; if($activeClass == 1){ $active = 'style="display: block;"'; @@ -3170,6 +3169,8 @@ $r->print('
'); (($env{'form.folderpath'} =~ /^default\&/) || ($env{'form.folderpath'} eq ''))) { $env{'form.folderpath'} = 'supplemental&'. &escape(&mt('Supplemental '.$type.' Documents')); + }else{ + $env{'form.folderpath'} = $savefolderpath; } if ($allowed) { my $folderseq= @@ -3192,7 +3193,6 @@ $r->print('');
- @@ -3205,7 +3205,6 @@ SUPDOCFORM
- - - $help{'Syllabus'} @@ -3246,7 +3243,6 @@ SNSFORM - $help{'My Personal Information Page'} @@ -3279,7 +3275,6 @@ my $error = &editor($r,$coursenum,$cours } $r->print(''); } - } $r->print(''); if ($allowed) { $r->print('