[LON-CAPA-cvs] cvs: loncom /xml scripttag.pm

www lon-capa-cvs@mail.lon-capa.org
Tue, 28 Sep 2004 20:40:05 -0000


www		Tue Sep 28 16:40:05 2004 EDT

  Modified files:              
    /loncom/xml	scripttag.pm 
  Log:
  Rolling back to 1.115, but Bug #3449 remains: opens additional window on
  Safari.
  
  
Index: loncom/xml/scripttag.pm
diff -u loncom/xml/scripttag.pm:1.116 loncom/xml/scripttag.pm:1.117
--- loncom/xml/scripttag.pm:1.116	Mon Sep 27 16:59:21 2004
+++ loncom/xml/scripttag.pm	Tue Sep 28 16:40:05 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # <script> definiton
 #
-# $Id: scripttag.pm,v 1.116 2004/09/27 20:59:21 www Exp $
+# $Id: scripttag.pm,v 1.117 2004/09/28 20:40:05 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -26,7 +26,6 @@
 # http://www.lon-capa.org/
 #
 
-
 package Apache::scripttag;
 
 use strict;
@@ -118,8 +117,7 @@
 	    ($Apache::lonhomework::viewgrades == 'F')) {
 	    $Apache::lonxml::evaluate--;
 	    my (undef,undef,$udom,$uname)=&Apache::lonxml::whichuser();
-	    my $nothing= &Apache::lonhtmlcommon::javascript_nothing();
-	    $result.="<script type=\"text/javascript\"> function LONCAPA_scriptvars_".$uname."_".$udom."_"."$Apache::lonxml::curdepth() {newWindow=open('','new_W','width=500,height=500,scrollbars=1,resizable=yes');newWindow.document.open($nothing,'replace');newWindow.document.writeln('<html><head><title>Script Vars</title></head><body bgcolor=\"#FFFFFF\"><pre>";
+	    $result.="<script type=\"text/javascript\"> function LONCAPA_scriptvars_".$uname."_".$udom."_"."$Apache::lonxml::curdepth() {newWindow=open('','new_W','width=500,height=500,scrollbars=1,resizable=yes');newWindow.document.open('text/html','replace');newWindow.document.writeln('<html><head><title>Script Vars</title></head><body bgcolor=\"#FFFFFF\"><pre>";
 	    my $listing=&Apache::run::dump($target,$safeeval);
 	    $listing=~s/\'/\\\'/g;
 	    $listing=~s/\n/\\n/g;