--- loncom/interface/lonmenu.pm 2003/04/03 00:52:21 1.49
+++ loncom/interface/lonmenu.pm 2003/04/03 14:44:01 1.51
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines to control the menu
#
-# $Id: lonmenu.pm,v 1.49 2003/04/03 00:52:21 www Exp $
+# $Id: lonmenu.pm,v 1.51 2003/04/03 14:44:01 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -484,9 +484,19 @@ sub switch {
$act=~s/\$udom/$udom/g;
unless (($ENV{'browser.interface'} eq 'textual') ||
($ENV{'environment.remote'} eq 'off')) {
+# Remote
return "\n".
qq(window.status+='.';swmenu.switchbutton($row,$col,"$img","$top","$bot","$act","$desc"););
+ } elsif ($ENV{'browser.interface'} eq 'textual') {
+# Accessibility
+ if ($nobreak==2) { return ''; }
+ my $text=$top.' '.$bot;
+ $text=~s/\- //;
+ return "\n".($nobreak?' ':'
').
+ ''.$text.' '.
+ ($nobreak?'':$desc);
} else {
+# Inline Remote
if ($nobreak==2) { return ''; }
my $text=$top.' '.$bot;
$text=~s/\- //;
@@ -630,7 +640,8 @@ sub footer {
}
sub utilityfunctions {
- unless ($ENV{'browser.interface'} eq 'textual') { return ''; }
+ unless (($ENV{'browser.interface'} eq 'textual') ||
+ ($ENV{'environment.remote'} eq 'off')) { return ''; }
my $currenturl=$ENV{'REQUEST_URI'};
my $currentsymb=$ENV{'request.symb'};
return (<