--- loncom/interface/loncommon.pm 2004/07/21 20:23:34 1.202 +++ loncom/interface/loncommon.pm 2004/09/24 22:08:02 1.205.2.2 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.202 2004/07/21 20:23:34 albertel Exp $ +# $Id: loncommon.pm,v 1.205.2.2 2004/09/24 22:08:02 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -688,8 +688,21 @@ function helpMenu(caller) { } } - (Help Menu) + (Help Menu) ENDTEMPLATE + if ($component_help) { + if (!$text) { + $template=&help_open_topic($component_help,undef,$stayOnPage, + $width,$height).' '.$template; + } else { + my $help_text; + $help_text=&Apache::lonnet::unescape($topic); + $template='
'. + &help_open_topic($component_help,$help_text,$stayOnPage, + $width,$height).''.$template. + '
'; + } + } if ($text ne '') { $template.='' }; return $template; } @@ -1804,7 +1817,7 @@ sub noteswrapper { sub aboutmewrapper { my ($link,$username,$domain,$target)=@_; - return ''.$link.''; } @@ -3638,6 +3651,13 @@ sub icon { return $iconname; } +sub connection_aborted { + my ($r)=@_; + $r->print(" ");$r->rflush(); + my $c = $r->connection; + return $c->aborted(); +} + =pod =back