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

raeburn raeburn at source.lon-capa.org
Mon Jan 6 12:31:09 EST 2014


raeburn		Mon Jan  6 17:31:09 2014 EDT

  Modified files:              
    /loncom/interface	lonmenu.pm 
  Log:
  - Modification to change in rev. 1.425.
    If the href points to an anchor in the same page, escape from the frame is
    not required.
  
  
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.425 loncom/interface/lonmenu.pm:1.426
--- loncom/interface/lonmenu.pm:1.425	Mon Jan  6 15:05:50 2014
+++ loncom/interface/lonmenu.pm	Mon Jan  6 17:31:09 2014
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines to control the menu
 #
-# $Id: lonmenu.pm,v 1.425 2014/01/06 15:05:50 raeburn Exp $
+# $Id: lonmenu.pm,v 1.426 2014/01/06 17:31:09 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -514,7 +514,7 @@
             if ($count == $numsub) {
                 $borderbot = 'border-bottom:1px solid black;';
             }
-            if ($href ne '') {
+            unless (($href eq '') || ($href =~ /^\#/)) {
                 $target = ' target="_top"';
             }
             $menu .= '<li style="margin:0;padding:0;'.




More information about the LON-CAPA-cvs mailing list