[LON-CAPA-cvs] cvs: loncom /xml lonxml.pm
www
lon-capa-cvs@mail.lon-capa.org
Fri, 24 May 2002 20:51:55 -0000
www Fri May 24 16:51:55 2002 EDT
Modified files:
/loncom/xml lonxml.pm
Log:
Syncs clock in menu. Fixed bug #76.
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.173 loncom/xml/lonxml.pm:1.174
--- loncom/xml/lonxml.pm:1.173 Thu May 23 17:24:06 2002
+++ loncom/xml/lonxml.pm Fri May 24 16:51:55 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# XML Parser Module
#
-# $Id: lonxml.pm,v 1.173 2002/05/23 21:24:06 www Exp $
+# $Id: lonxml.pm,v 1.174 2002/05/24 20:51:55 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -340,6 +340,7 @@
$Apache::lonxml::registered=1;
my $nothing='';
if ($ENV{'browser.type'} eq 'explorer') { $nothing='javascript:void(0);'; }
+ my $timesync='menu.clock.setTime(1000*'.time.');';
if (($ENV{'REQUEST_URI'}!~/^\/(res\/)*adm\//) || ($forcereg)) {
my $hwkadd='';
if ($ENV{'request.filename'}=~/\.(problem|exam|quiz|assess|survey|form)$/) {
@@ -367,6 +368,7 @@
function LONCAPAreg() {
menu=window.open("$nothing","LONCAPAmenu","",false);
menu.clearTimeout(menu.menucltim);
+ $timesync
menu.currentURL=window.location.pathname;
menu.currentStale=0;
menu.clearbut(3,1);
@@ -418,6 +420,7 @@
function LONCAPAreg() {
menu=window.open("$nothing","LONCAPAmenu","",false);
+ $timesync
menu.currentStale=1;
menu.clearbut(2,1);
menu.clearbut(2,3);