+
|
$selectbox
|
-
+
$lt{'rm'}
-
+
$lt{'rn'} |
END
} else {
@@ -1626,6 +1658,7 @@ sub changewarning {
if (defined($ENV{'form.pagepath'})) {
$pathvar='pagepath';
$path=&Apache::lonnet::escape($ENV{'form.pagepath'});
+ $path.='&symb='.&Apache::lonnet::escape($ENV{'form.pagesymb'});
}
$r->print(
''.
@@ -1681,7 +1714,7 @@ sub handler {
# is this a standard course?
my $standard=($ENV{'request.course.uri'}=~/^\/uploaded\//);
- my $forcestandard;
+ my $forcestandard = 0;
my $forcesupplement;
my $script='';
my $allowed;
@@ -1700,14 +1733,19 @@ sub handler {
my (@pagepath)=split('&',$ENV{'form.pagepath'});
$ENV{'form.pagename'}=&Apache::lonnet::unescape(pop(@pagepath));
$ENV{'form.folder'}=pop(@pagepath);
- $containertag = '';
- $uploadtag = '';
+ $containertag = ''.
+ '';
+ $uploadtag = ''.
+ '';
}
if ($r->uri=~/^\/adm\/coursedocs\/showdoc\/(.*)$/) {
$showdoc='/'.$1;
}
unless ($showdoc) { # got called from remote
- $forcestandard=($ENV{'form.folder'}=~/^default_/);
+ if (($ENV{'form.folder'}=~/^default_/) ||
+ ($ENV{'form.folder'} =~ m#^\d+/(pages|sequences)/#)) {
+ $forcestandard = 1;
+ }
$forcesupplement=($ENV{'form.folder'}=~/^supplemental_/);
# does this user have privileges to post, etc?
@@ -1841,7 +1879,7 @@ function finishpick() {
'";this.document.forms.'+form+'.submit();');
}
-function changename(folderpath,index,oldtitle,container) {
+function changename(folderpath,index,oldtitle,container,pagesymb) {
var title=prompt('New Title',oldtitle);
if (title) {
this.document.forms.renameform.title.value=title;
@@ -1851,12 +1889,13 @@ function changename(folderpath,index,old
}
if (container == 'page') {
this.document.forms.renameform.pagepath.value=folderpath;
+ this.document.forms.renameform.pagesymb.value=pagesymb;
}
this.document.forms.renameform.submit();
}
}
-function removeres(folderpath,index,oldtitle,container) {
+function removeres(folderpath,index,oldtitle,container,pagesymb) {
if (confirm('Remove "'+oldtitle+'"?')) {
this.document.forms.renameform.cmd.value='del_'+index;
if (container == 'sequence') {
@@ -1864,6 +1903,7 @@ function removeres(folderpath,index,oldt
}
if (container == 'page') {
this.document.forms.renameform.pagepath.value=folderpath;
+ this.document.forms.renameform.pagesymb.value=pagesymb;
}
this.document.forms.renameform.submit();
}