--- loncom/interface/loncommon.pm 2013/12/27 15:50:34 1.1075.2.59
+++ loncom/interface/loncommon.pm 2013/12/30 01:31:55 1.1075.2.60
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.1075.2.59 2013/12/27 15:50:34 raeburn Exp $
+# $Id: loncommon.pm,v 1.1075.2.60 2013/12/30 01:31:55 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1352,8 +1352,10 @@ sub help_open_menu {
sub top_nav_help {
my ($text) = @_;
$text = &mt($text);
- my $stay_on_page = 1;
-
+ my $stay_on_page;
+ unless ($env{'environment.remote'} eq 'on') {
+ $stay_on_page = 1;
+ }
my $link = ($stay_on_page) ? "javascript:helpMenu('display')"
: "javascript:helpMenu('open')";
my $banner_link = &update_help_link(undef,undef,undef,undef,$stay_on_page);
@@ -5196,6 +5198,9 @@ sub bodytag {
}
my $upperleft='';
+ my $help=($no_inline_link?''
+ :&Apache::loncommon::top_nav_help('Help'));
+
# Explicit link to get inline menu
my $menu= ($no_inline_link?''
:''.&mt('Switch to Inline Menu Mode').'');
@@ -5213,6 +5218,7 @@ sub bodytag {
unless ($env{'form.inhibitmenu'}) {
$bodytag .= qq|