--- loncom/interface/lonmenu.pm 2003/06/15 23:06:32 1.77
+++ loncom/interface/lonmenu.pm 2003/06/19 03:03:32 1.78
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines to control the menu
#
-# $Id: lonmenu.pm,v 1.77 2003/06/15 23:06:32 www Exp $
+# $Id: lonmenu.pm,v 1.78 2003/06/19 03:03:32 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -246,7 +246,7 @@ sub innerregister {
if
($ENV{'request.filename'}=~/\.(problem|exam|quiz|assess|survey|form)$/) {
if (&Apache::lonnet::allowed('vgr',$ENV{'request.course.id'})) {
- $hwkadd.=&switch('','',7,1,'subm.gif','view sub','missions',
+ $hwkadd.=&switch('','',7,1,'subm.gif','view sub-','missions',
"gocmd('/adm/grades','submission')",
'View user submissions for this assessment resource');
}
@@ -611,7 +611,7 @@ sub switch {
# Accessibility
if ($nobreak==2) { return ''; }
my $text=$top.' '.$bot;
- $text=~s/\- //;
+ $text=~s/\s*\-\s*//gs;
$inlineremote[10*$row+$col]="\n".($nobreak?' ':'
').
''.$text.' '.
($nobreak?'':$desc);
@@ -619,7 +619,7 @@ sub switch {
# Inline Remote
if ($nobreak==2) { return ''; }
my $text=$top.' '.$bot;
- $text=~s/\- //;
+ $text=~s/\s*\-\s*//gs;
$inlineremote[10*$row+$col]="\n".
($nobreak==3?'