[LON-CAPA-cvs] cvs: loncom /interface lonmenu.pm

www lon-capa-cvs@mail.lon-capa.org
Thu, 20 Feb 2003 18:00:31 -0000


www		Thu Feb 20 13:00:31 2003 EDT

  Modified files:              
    /loncom/interface	lonmenu.pm 
  Log:
  Frames do not work with most text-based browsers and/or are causing problems.
  Better leave framesets asap.
  
  
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.42 loncom/interface/lonmenu.pm:1.43
--- loncom/interface/lonmenu.pm:1.42	Mon Feb 17 17:59:37 2003
+++ loncom/interface/lonmenu.pm	Thu Feb 20 13:00:31 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines to control the menu
 #
-# $Id: lonmenu.pm,v 1.42 2003/02/17 22:59:37 www Exp $
+# $Id: lonmenu.pm,v 1.43 2003/02/20 18:00:31 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -49,7 +49,7 @@
     my $registration=shift;
     unless ($ENV{'browser.interface'} eq 'textual') { return ''; }
 # Textual display only
-    my $output='<a href="/adm/menu">Main Menu</a><br />';
+    my $output='<a href="/adm/menu" target="_top">Main Menu</a><br />';
     if ($registration) { $output.=&innerregister($forcereg,$target); }
     return $output."<hr />";
 }
@@ -449,7 +449,8 @@
        my $text=$top.' '.$bot;
        $text=~s/\- //;
        return "\n".($nobreak?' ':'<br />').
-        '<a href="javascript:'.$act.';">'.$text.'</a> '.($nobreak?'':$desc);
+        '<a href="javascript:'.$act.';" target="_top">'.$text.'</a> '.
+        ($nobreak?'':$desc);
    }
 }