');
+# ''.&mt('Main Course Documents').
+# ($allowed?' '.$help{'Main_Course_Documents'}:'').'');
my $folder=$ENV{'form.folder'};
- if ($folder eq '') {
+ if ($folder eq '' || $folder eq 'supplemental') {
$folder='default';
+ $ENV{'form.folderpath'}='default&'.&Apache::lonnet::escape(&mt('Main Course Documents'));
}
my $postexec='';
if ($folder eq 'default') {
$r->print('');
} else {
- $postexec='self.close();';
+ #$postexec='self.close();';
}
$hadchanges=0;
&editor($r,$coursenum,$coursedom,$folder,$allowed);
@@ -1212,8 +1188,7 @@ $lt{'file'}:
$lt{'title'}:
-
-
+
@@ -1223,13 +1198,10 @@ $lt{'title'}:
|
|
@@ -1350,11 +1312,18 @@ ENDFORM
}
# ----------------------------------------------------- Supplemental documents
if (!$forcestandard) {
- $r->print(
- ' |
');
+# ''.&mt('Supplemental Course Documents').
+# ($allowed?' '.$help{'Supplemental'}:'').'');
my $folder=$ENV{'form.folder'};
- unless ($folder=~/supplemental/) { $folder='supplemental'; }
+ unless ($folder=~/^supplemental/) {
+ $folder='supplemental';
+ }
+ if ($folder =~ /^supplemental$/ &&
+ $ENV{'form.folderpath'} =~ /^default\&/) {
+ $ENV{'form.folderpath'}='supplemental&'.
+ &Apache::lonnet::escape(&mt('Supplemental Course Documents'));
+ }
&editor($r,$coursenum,$coursedom,$folder,$allowed);
if ($allowed) {
my $folderseq=
@@ -1372,8 +1341,8 @@ ENDFORM
$lt{'comment'}:
-
-
+
+
@@ -1383,8 +1352,7 @@ ENDFORM
|
|