--- loncom/interface/loncommon.pm 2005/04/07 06:56:22 1.258 +++ loncom/interface/loncommon.pm 2005/06/03 15:47:29 1.264 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.258 2005/04/07 06:56:22 albertel Exp $ +# $Id: loncommon.pm,v 1.264 2005/06/03 15:47:29 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -673,7 +673,6 @@ sub help_open_menu { foreach (\$color,\$function,\$topic,\$component_help,\$faq,\$bug,\$origurl) { $$_ = &Apache::lonnet::escape($$_); } - if (!$stayOnPage) { $link = "javascript:helpMenu('open')"; } else { @@ -687,6 +686,7 @@ sub help_open_menu { "
$text";
}
+ my $nothing=&Apache::lonhtmlcommon::javascript_nothing();
my $html=&Apache::lonxml::xmlbegin();
my $helpicon=&lonhttpdurl("/adm/lonIcons/helpgateway.gif");
$template .= <<"ENDTEMPLATE";
@@ -698,7 +698,7 @@ function helpMenu(target) {
if (target == 'open') {
var newWindow = null;
try {
- newWindow = window.open("/adm/rat/empty.html","helpmenu","HEIGHT=$height,WIDTH=$width,resizable=yes,scrollbars=yes" )
+ newWindow = window.open($nothing,"helpmenu","HEIGHT=$height,WIDTH=$width,resizable=yes,scrollbars=yes" )
}
catch(error) {
writeHelp(caller);
@@ -712,9 +712,9 @@ function helpMenu(target) {
return;
}
function writeHelp(caller) {
- caller.document.write('$html |