--- loncom/interface/lonhtmlcommon.pm 2004/01/27 16:35:37 1.42
+++ loncom/interface/lonhtmlcommon.pm 2004/02/03 21:52:22 1.45
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common html routines
#
-# $Id: lonhtmlcommon.pm,v 1.42 2004/01/27 16:35:37 www Exp $
+# $Id: lonhtmlcommon.pm,v 1.45 2004/02/03 21:52:22 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -826,8 +826,12 @@ Returns: none
# Create progress
sub Create_PrgWin {
my ($r, $title, $heading, $number_to_do)=@_;
+ #the whole function called through timeout is due to issues
+ #in mozilla Read BUG #2665 if you want to know the whole story
$r->print('");
+ "popwin.document.close();}".
+ "\nwindow.setTimeout(openpopwin,0)");
my %prog_state;
$prog_state{'done'}=0;
@@ -924,13 +928,14 @@ sub crumbs {
my ($uri,$target,$prefix,$form)=@_;
my $output='
'.$prefix.'/';
if ($ENV{'user.adv'}) {
- my $path=$prefix;
+ my $path=$prefix.'/';
foreach (split('/',$uri)) {
unless ($_) { next; }
- $path.='/'.$_;
+ $path.=$_;
+ unless ($path eq $uri) { $path.='/'; }
my $linkpath=$path;
if ($form) {
- $linkpath="javascript:$form.action='$path/';$form.submit();";
+ $linkpath="javascript:$form.action='$path';$form.submit();";
}
$output.=''.$_.'/';
}