[LON-CAPA-cvs] cvs: loncom /xml lonxml.pm
www
lon-capa-cvs@mail.lon-capa.org
Thu, 21 Mar 2002 20:51:10 -0000
www Thu Mar 21 15:51:10 2002 EDT
Modified files:
/loncom/xml lonxml.pm
Log:
Not clear out menu window
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.158 loncom/xml/lonxml.pm:1.159
--- loncom/xml/lonxml.pm:1.158 Mon Mar 18 16:51:34 2002
+++ loncom/xml/lonxml.pm Thu Mar 21 15:51:10 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# XML Parser Module
#
-# $Id: lonxml.pm,v 1.158 2002/03/18 21:51:34 matthew Exp $
+# $Id: lonxml.pm,v 1.159 2002/03/21 20:51:10 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -325,6 +325,8 @@
}
if ($Apache::lonxml::registered && !$forcereg) { return ''; }
$Apache::lonxml::registered=1;
+ my $nothing='';
+ if ($ENV{'browser.type'} eq 'explorer') { $nothing='javascript:void(0);'; }
if (($ENV{'REQUEST_URI'}!~/^\/(res\/)*adm\//) || ($forcereg)) {
my $hwkadd='';
if ($ENV{'REQUEST_URI'}=~/\.(problem|exam|quiz|assess|survey|form)$/) {
@@ -356,7 +358,7 @@
// BEGIN LON-CAPA Internal
function LONCAPAreg() {
- menu=window.open("","LONCAPAmenu","",false);
+ menu=window.open("$nothing","LONCAPAmenu","",false);
menu.clearTimeout(menu.menucltim);
menu.currentURL=window.location.pathname;
menu.currentStale=0;
@@ -383,7 +385,7 @@
}
function LONCAPAstale() {
- menu=window.open("","LONCAPAmenu","",false);
+ menu=window.open("$nothing","LONCAPAmenu","",false);
menu.currentStale=1;
menu.switchbutton
(3,1,'reload.gif','return','location','go(currentURL)');
@@ -408,7 +410,7 @@
// BEGIN LON-CAPA Internal
function LONCAPAreg() {
- menu=window.open("","LONCAPAmenu","",false);
+ menu=window.open("$nothing","LONCAPAmenu","",false);
menu.currentStale=1;
menu.clearbut(2,1);
menu.clearbut(2,3);