[LON-CAPA-cvs] cvs: loncom /interface lonmenu.pm
raeburn
raeburn at source.lon-capa.org
Mon Jan 6 10:05:50 EST 2014
raeburn Mon Jan 6 15:05:50 2014 EDT
Modified files:
/loncom/interface lonmenu.pm
Log:
- Link tags for items in sub-menus show have "_top" as target to escape
frame, if used in frameset (e.g., Help Menu frame, Search frame).
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.424 loncom/interface/lonmenu.pm:1.425
--- loncom/interface/lonmenu.pm:1.424 Fri Dec 27 14:17:59 2013
+++ loncom/interface/lonmenu.pm Mon Jan 6 15:05:50 2014
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines to control the menu
#
-# $Id: lonmenu.pm,v 1.424 2013/12/27 14:17:59 raeburn Exp $
+# $Id: lonmenu.pm,v 1.425 2014/01/06 15:05:50 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -514,8 +514,11 @@
if ($count == $numsub) {
$borderbot = 'border-bottom:1px solid black;';
}
+ if ($href ne '') {
+ $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