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

albertel lon-capa-cvs-allow@mail.lon-capa.org
Sat, 17 Nov 2007 01:51:16 -0000


albertel		Fri Nov 16 20:51:16 2007 EDT

  Modified files:              
    /loncom/xml	scripttag.pm 
  Log:
  - BUG#5523 - close then open the window so the correct size is applied
  
  
Index: loncom/xml/scripttag.pm
diff -u loncom/xml/scripttag.pm:1.146 loncom/xml/scripttag.pm:1.147
--- loncom/xml/scripttag.pm:1.146	Fri Nov 16 20:46:44 2007
+++ loncom/xml/scripttag.pm	Fri Nov 16 20:51:11 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # <script> definiton
 #
-# $Id: scripttag.pm,v 1.146 2007/11/17 01:46:44 albertel Exp $
+# $Id: scripttag.pm,v 1.147 2007/11/17 01:51:11 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -375,6 +375,8 @@
     $result = "<script type=\"text/javascript\">
 //<!--
  function LONCAPA_newwindow_$Apache::lonxml::curdepth() {
+newWindow=open(".&Apache::lonhtmlcommon::javascript_nothing().",'new_W');
+newWindow.close();
 newWindow=open(".&Apache::lonhtmlcommon::javascript_nothing().",'new_W','width=$width,height=$height,scrollbars=1');
 newWindow.".&Apache::lonhtmlcommon::javascript_docopen($mimetype).";
 newWindow.document.writeln('$start_page $output $end_page');