--- loncom/interface/lonmenu.pm 2011/11/27 20:55:58 1.362
+++ loncom/interface/lonmenu.pm 2012/04/11 15:21:43 1.369
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines to control the menu
#
-# $Id: lonmenu.pm,v 1.362 2011/11/27 20:55:58 www Exp $
+# $Id: lonmenu.pm,v 1.369 2012/04/11 15:21:43 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -428,7 +428,7 @@ sub innerregister {
"gocmd('/adm/parmset','set')",
'Content Settings');
}
- if ($env{'request.symb'} ne '' &&
+ if ($env{'request.symb'}=~/^uploaded/ &&
&Apache::lonnet::allowed('mdc',$crs)) {
$hwkadd.=&switch('','',7,4,'docs.png','Folder/Page Content','parms[_2]',
"gocmd('/adm/coursedocs','direct')",
@@ -1087,13 +1087,13 @@ function showCourseID() {
document.getElementById('dccid').style.display='block';
document.getElementById('dccid').style.textAlign='left';
document.getElementById('dccid').style.textFace='normal';
- document.getElementById('dccidtext').innerHTML ='$lt{'less'}';
+ document.getElementById('dccidtext').innerHTML ='';
return;
}
function hideCourseID() {
document.getElementById('dccid').style.display='none';
- document.getElementById('dccidtext').innerHTML ='$lt{'more'}';
+ document.getElementById('dccidtext').innerHTML ='';
return;
}
@@ -1132,12 +1132,14 @@ sub utilityfunctions {
my $confirm_switch = &mt("Editing requires switching to the resource's home server.").'\n'.
&mt('Switch server?');
+ my $esc_url=&escape($currenturl);
+ my $esc_symb=&escape($currentsymb);
return (< 'cst',
'/adm/trackstudent' => 'vsa',
'/adm/statistics' => 'vgr',
+ '/adm/setblock' => 'dcm',
+ '/adm/coursedocs' => 'mdc',
};
unless ($env{'course.'.$env{'request.course.id'}.'.grading'} eq 'spreadsheet') {
- $privs->{'/adm/classcalc'} => 'vgr',
- $privs->{'/adm/assesscalc'} => 'vgr',
- $privs->{'/adm/studentcalc'} => 'vgr';
+ $privs->{'/adm/classcalc'} = 'vgr',
+ $privs->{'/adm/assesscalc'} = 'vgr',
+ $privs->{'/adm/studentcalc'} = 'vgr';
}
return $privs;
}