--- loncom/interface/londocs.pm 2009/03/08 21:49:33 1.353 +++ loncom/interface/londocs.pm 2009/03/17 17:36:22 1.358 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.353 2009/03/08 21:49:33 weissno Exp $ +# $Id: londocs.pm,v 1.358 2009/03/17 17:36:22 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1775,7 +1775,7 @@ sub entryline { ''; @@ -3128,14 +3128,14 @@ my %orderhash = ( 'aa' => 'New Document', 'bb' => 'Published Documents', 'cc' => 'Special Documents', - 'dd' => 'More Options', + 'dd' => 'Tools', 'zz' => 'Hide all Options', ); my %namehash = ( 'New Document' => $fileuploadform.'
'.$newfolderform, 'Published Documents' => $simpleeditdefaultform, 'Special Documents' => $specialdocumentsform, - 'More Options' => $extresourcesform.'
'.$imspform.'
'.$recoverform, + 'Tools' => $extresourcesform.'
'.$imspform.'
'.$recoverform.'
'.&generate_admin_options($containertag,$uploadtag,\%help,\%env), ); my $tid='1'; my $content='content'; @@ -3155,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;"'; @@ -3171,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= @@ -3189,7 +3189,7 @@ $r->print('');

$lt{'comment'}:
-
@@ -3259,8 +3259,8 @@ my %suporderhash = ( ); my %supnamehash = ( - 'New Document' => $supupdocform, - 'Special Documents' => $supnewfolderform.'
'.$supnewextform.'
'.$supnewsylform.'
'.$supnewaboutmeform, + 'New Document' => $supupdocform.'
'.$supnewfolderform, + 'Special Documents' => $supnewextform.'
'.$supnewsylform.'
'.$supnewaboutmeform, ); my $tid='2'; @@ -3275,10 +3275,6 @@ my $error = &editor($r,$coursenum,$cours } $r->print(''); } - } -$r->print(''); $r->print(''); if ($allowed) { $r->print(' @@ -3317,29 +3313,14 @@ sub generate_admin_options { my $exportbut=&exportbutton(); return (< - - ENDOPTIONFORM }