--- loncom/interface/lonmenu.pm 2013/12/13 14:30:49 1.369.2.48 +++ loncom/interface/lonmenu.pm 2015/01/21 21:09:15 1.369.2.54 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Routines to control the menu # -# $Id: lonmenu.pm,v 1.369.2.48 2013/12/13 14:30:49 raeburn Exp $ +# $Id: lonmenu.pm,v 1.369.2.54 2015/01/21 21:09:15 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -562,8 +562,11 @@ sub create_submenu { if ($count == $numsub) { $borderbot = 'border-bottom:1px solid black;'; } + unless (($href eq '') || ($href =~ /^\#/)) { + $target = ' target="_top"'; + } $menu .= '
  • '; + $borderbot.'">'; if ($translate) { $menu .= &mt($item->[1]); } else { @@ -857,7 +860,7 @@ ENDMENUITEMS # wishlist is only available for users with access to resource-pool # and links can only be set for resources within the resource-pool $menuitems .= (< 0){ } $menuitems.="&$swtext{'anot'}&tations[_1]&annotate()&"; $menuitems.="Make notes and annotations about this resource&&1\n"; +my $is_mobile; +if ($env{'browser.mobile'}) { + $is_mobile = 1; +} unless ($env{'request.noversionuri'}=~/\/(bulletinboard|smppg|navmaps|syllabus|aboutme|viewclasslist|portfolio)(\?|$)/) { if ((!$env{'request.enc'}) && ($env{'request.noversionuri'} !~ m{^/adm/wrapper/ext/}) && ($env{'request.noversionuri'} !~ m{^/uploaded/$match_domain/$match_courseid/docs/})) { $menuitems.=(<