[LON-CAPA-cvs] cvs: loncom /xml lonxml.pm
matthew
lon-capa-cvs@mail.lon-capa.org
Wed, 07 Aug 2002 13:58:38 -0000
matthew Wed Aug 7 09:58:38 2002 EDT
Modified files:
/loncom/xml lonxml.pm
Log:
Fixed javascript error on IE 6.x Mac.
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.186 loncom/xml/lonxml.pm:1.187
--- loncom/xml/lonxml.pm:1.186 Mon Jul 29 18:06:38 2002
+++ loncom/xml/lonxml.pm Wed Aug 7 09:58:38 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# XML Parser Module
#
-# $Id: lonxml.pm,v 1.186 2002/07/29 22:06:38 www Exp $
+# $Id: lonxml.pm,v 1.187 2002/08/07 13:58:38 matthew Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -333,7 +333,8 @@
my $target = shift;
my $result = '';
if ($target eq 'edit') {
- $result .="<script>\n menu.currentURL=null;\n".
+ $result .="<script>\n".
+ "if (typeof menu != 'undefined') {menu.currentURL=null;}\n".
&Apache::loncommon::browser_and_searcher_javascript().
"\n</script>\n";
}