--- loncom/xml/lonxml.pm 2003/02/13 21:14:35 1.232 +++ loncom/xml/lonxml.pm 2003/02/14 15:14:37 1.233 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # XML Parser Module # -# $Id: lonxml.pm,v 1.232 2003/02/13 21:14:35 albertel Exp $ +# $Id: lonxml.pm,v 1.233 2003/02/14 15:14:37 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -376,18 +376,6 @@ sub fontsettings() { return $headerstring; } - -## -## switchmenu - modeled on lonmenu::switchmenu, but better. -## Helper function for registerurl -## -sub switchmenu { - my ($row,$col,$imgsrc,$texttop,$textbot,$action,$description)=@_; - return(<\n". - "if (typeof menu != 'undefined') {menu.currentURL=null;}\n". + "if (typeof swmenu != 'undefined') {swmenu.currentURL=null;}\n". &Apache::loncommon::browser_and_searcher_javascript(). "\n\n"; } - if ((($ENV{'request.publicaccess'}) || + if (($ENV{'browser.interface'} eq 'textual') || + ((($ENV{'request.publicaccess'}) || (!&Apache::lonnet::is_on_map($ENV{'REQUEST_URI'}))) && - (!$forcereg)) { + (!$forcereg))) { return $result. ''; } @@ -410,27 +399,27 @@ sub registerurl { my $reopen=&Apache::lonmenu::reopenmenu(); my $newmail=''; if (&Apache::lonmsg::newmail()) { - $newmail='menu.setstatus("you have","messages");'; + $newmail='swmenu.setstatus("you have","messages");'; } - my $timesync='menu.syncclock(1000*'.time.');'; + my $timesync='swmenu.syncclock(1000*'.time.');'; if (($ENV{'REQUEST_URI'}!~/^\/(res\/)*adm\//) || ($forcereg)) { my $hwkadd=''; if ($ENV{'request.filename'}=~/\.(problem|exam|quiz|assess|survey|form)$/) { if (&Apache::lonnet::allowed('vgr',$ENV{'request.course.id'})) { $hwkadd.=(<