[LON-CAPA-cvs] cvs: loncom /interface lonchatfetch.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Tue, 27 Jun 2006 00:01:15 -0000
albertel Mon Jun 26 20:01:15 2006 EDT
Modified files:
/loncom/interface lonchatfetch.pm
Log:
- vomit worthy workaround for now for BUG#4839
- Mozilla (1.0 and 1.5) don't like the dangling webpage + CSS it refuses to display anything until a .close has occured on the chat display window.
Index: loncom/interface/lonchatfetch.pm
diff -u loncom/interface/lonchatfetch.pm:1.25 loncom/interface/lonchatfetch.pm:1.26
--- loncom/interface/lonchatfetch.pm:1.25 Tue May 30 08:46:08 2006
+++ loncom/interface/lonchatfetch.pm Mon Jun 26 20:01:15 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Chat Fetching
#
-# $Id: lonchatfetch.pm,v 1.25 2006/05/30 12:46:08 www Exp $
+# $Id: lonchatfetch.pm,v 1.26 2006/06/27 00:01:15 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -107,6 +107,11 @@
{'only_body' => 1,
'bgcolor' => '#FFFFFF',
'js_ready' => 1,});
+ # removing the CSS reference for now
+ # see BUG# 4839
+ # to fix, need to either write the whole webpage to the bottom frame
+ # everytime or store the page in a js variable somewhere.
+ $newstuff =~ s|(<link.*?/>)||;
}
my @participants=();
foreach (@entries) {
@@ -159,10 +164,10 @@
$color=substr($color,0,6);
my $timestamp=localtime($msgtime);
my ($mhour,$mmin,$msec)=($timestamp=~/(\d\d)\:(\d\d)\:(\d\d)/);
- $newstuff.='<font color="#'.$color.'"><a name="'.$id.'"><b>'.
+ $newstuff.='<font color="#'.$color.'"><a name="LC_'.$id.'"></a><b>'.
$sender.'</b> ('.$mhour.':'.$mmin.':'.$msec.'): '.
- $contrib."</font><br>";
- $bottomid=$id;
+ $contrib."</font><br />";
+ $bottomid='LC_'.$id;
} else {
$_=~/^(\w+)/;
if ($1 eq $env{'form.lastid'}) { $include=1; }
@@ -171,7 +176,7 @@
my $participant_output=join('<br />',sort @participants);
my $refresh_cmd = "/adm/chatfetch?lastid=$lastid";
if (defined($group)) {
- $refresh_cmd .= "&group=$group";
+ $refresh_cmd .= "&group=$group";
}
my $start_page =
&Apache::loncommon::start_page('Chat',undef,