--- loncom/interface/lonmenu.pm 2003/09/17 16:50:58 1.89
+++ loncom/interface/lonmenu.pm 2003/10/24 21:04:21 1.96
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines to control the menu
#
-# $Id: lonmenu.pm,v 1.89 2003/09/17 16:50:58 www Exp $
+# $Id: lonmenu.pm,v 1.96 2003/10/24 21:04:21 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -203,7 +203,9 @@ sub registerurl {
}
# Graphical display after login only
if ($Apache::lonxml::registered && !$forcereg) { return ''; }
- $result.=&innerregister($forcereg,$target);
+ if ($target ne 'edit') {
+ $result.=&innerregister($forcereg,$target);
+ }
return $result.$force_title;
}
@@ -641,21 +643,34 @@ sub switch {
if ($nobreak==2) { return ''; }
my $text=$top.' '.$bot;
$text=~s/\s*\-\s*//gs;
- $inlineremote[10*$row+$col]="\n".($nobreak?' ':'
').
- ''.$text.' '.
- ($nobreak?'':$desc);
+ if ($nobreak) {
+ $inlineremote[10*$row+$col]=
+ ''.$text.'';
+ } else {
+ $inlineremote[10*$row+$col]="\n
".
+ ''.$desc.'';
+ }
} else {
# Inline Remote
if ($nobreak==2) { return ''; }
my $text=$top.' '.$bot;
$text=~s/\s*\-\s*//gs;
- $inlineremote[10*$row+$col]="\n".
- ($nobreak==3?'