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

raeburn raeburn at source.lon-capa.org
Mon Jan 6 12:32:58 EST 2014


raeburn		Mon Jan  6 17:32:58 2014 EDT

  Modified files:              (Branch: version_2_11_X)
    /loncom/interface	lonmenu.pm 
  Log:
  - For 2.11
    - Backport 1.425, 1.426.
  
  
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.369.2.49 loncom/interface/lonmenu.pm:1.369.2.50
--- loncom/interface/lonmenu.pm:1.369.2.49	Fri Dec 27 19:10:02 2013
+++ loncom/interface/lonmenu.pm	Mon Jan  6 17:32:58 2014
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines to control the menu
 #
-# $Id: lonmenu.pm,v 1.369.2.49 2013/12/27 19:10:02 raeburn Exp $
+# $Id: lonmenu.pm,v 1.369.2.50 2014/01/06 17:32:58 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -562,8 +562,11 @@
             if ($count == $numsub) {
                 $borderbot = 'border-bottom:1px solid black;';
             }
+            unless (($href eq '') || ($href =~ /^\#/)) {
+                $target = ' target="_top"';
+            }
             $menu .= '<li style="margin:0;padding:0;'.
-                     $borderbot.'"><a href="'.$href.'">';
+                     $borderbot.'"><a href="'.$href.'"'.$target.'>';
             if ($translate) {
                 $menu .= &mt($item->[1]);
             } else {




More information about the LON-CAPA-cvs mailing list