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

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 30 Oct 2003 20:57:28 -0000


albertel		Thu Oct 30 15:57:28 2003 EDT

  Modified files:              
    /loncom/xml	scripttag.pm 
  Log:
  - script vars window is now larger by default and resizable always (BUG#2070)
  
  
Index: loncom/xml/scripttag.pm
diff -u loncom/xml/scripttag.pm:1.103 loncom/xml/scripttag.pm:1.104
--- loncom/xml/scripttag.pm:1.103	Thu Oct 30 15:52:54 2003
+++ loncom/xml/scripttag.pm	Thu Oct 30 15:57:28 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # <script> definiton
 #
-# $Id: scripttag.pm,v 1.103 2003/10/30 20:52:54 albertel Exp $
+# $Id: scripttag.pm,v 1.104 2003/10/30 20:57:28 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -118,7 +118,7 @@
 	    ($ENV{'form.answer_output_mode'} ne 'tex') &&
 	    ($Apache::lonhomework::viewgrades == 'F')) {
 	    $Apache::lonxml::evaluate--;
-	    $result.="<script type=\"text/javascript\"> function LONCAPA_scriptvars_$Apache::lonxml::curdepth() {newWindow=open('','new_W','width=500,height=200,scrollbars=1');newWindow.document.open('text/html','replace');newWindow.document.writeln('<html><head><title>Script Vars</title></head><body bgcolor=\"#FFFFFF\"><pre>";
+	    $result.="<script type=\"text/javascript\"> function LONCAPA_scriptvars_$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;