version 1.45, 2017/02/20 00:36:40
|
version 1.46, 2018/05/08 01:19:06
|
Line 180 sub helpmenu_items {
|
Line 180 sub helpmenu_items {
|
lastloc => 'Go back', |
lastloc => 'Go back', |
close => 'Close', |
close => 'Close', |
); |
); |
|
my $target = '_top'; |
|
if (($env{'request.lti.login'}) && ($env{'request.lti.target'} eq 'iframe')) { |
|
$target = '_parent'; |
|
} |
my %items = ( |
my %items = ( |
general => { |
general => { |
href => '/adm/help/'.$general_help.'.hlp', |
href => '/adm/help/'.$general_help.'.hlp', |
Line 229 sub helpmenu_items {
|
Line 233 sub helpmenu_items {
|
img => '/res/adm/pages/tolastloc.png', |
img => '/res/adm/pages/tolastloc.png', |
alt => $lt{'lastloc'}, |
alt => $lt{'lastloc'}, |
text => $lt{'lastloc'}, |
text => $lt{'lastloc'}, |
target => '_top', |
target => $target, |
}, |
}, |
close => { |
close => { |
href => 'javascript:window.close()', |
href => 'javascript:window.close()', |
img => $location.'/lonIcons/close.gif', |
img => $location.'/lonIcons/close.gif', |
alt => $lt{'close'}, |
alt => $lt{'close'}, |
text => $lt{'close'}, |
text => $lt{'close'}, |
target => '_top', |
target => $target, |
}, |
}, |
); |
); |
my %help_submenu = ( |
my %help_submenu = ( |
Line 392 sub display_help_mainpage {
|
Line 396 sub display_help_mainpage {
|
$r->print(&Apache::loncommon::start_page('Help Content',undef, |
$r->print(&Apache::loncommon::start_page('Help Content',undef, |
{'only_body' => 1,})); |
{'only_body' => 1,})); |
} |
} |
|
my $target = '_top'; |
|
if (($env{'request.lti.login'}) && ($env{'request.lti.target'} eq 'iframe')) { |
|
$target = '_parent'; |
|
} |
if ($stayOnPage) { |
if ($stayOnPage) { |
$r->print('<div>'); |
$r->print('<div>'); |
} |
} |
Line 425 sub display_help_mainpage {
|
Line 433 sub display_help_mainpage {
|
&mt('[_1]Note[_2]: questions about course content should not be directed to the support team, but instead should be sent to the course instructor.'). |
&mt('[_1]Note[_2]: questions about course content should not be directed to the support team, but instead should be sent to the course instructor.'). |
' '. |
' '. |
&mt('This can be done by clicking the [_1]Communicate[_2] link or the "Send Feedback" link when viewing a content page.', |
&mt('This can be done by clicking the [_1]Communicate[_2] link or the "Send Feedback" link when viewing a content page.', |
'<a href="/adm/communicate" target="_top">','</a>')); |
'<a href="/adm/communicate" target="'.$target.'">','</a>')); |
} |
} |
$r->print("</p>"); |
$r->print("</p>"); |
} |
} |