[LON-CAPA-cvs] cvs: loncom /homework grades.pm

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


www		Tue Sep 28 16:35:08 2004 EDT

  Modified files:              
    /loncom/homework	grades.pm 
  Log:
  Wrong approach, rolling back to 1.215
  
  
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.216 loncom/homework/grades.pm:1.217
--- loncom/homework/grades.pm:1.216	Mon Sep 27 16:59:21 2004
+++ loncom/homework/grades.pm	Tue Sep 28 16:35:08 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Grading handler
 #
-# $Id: grades.pm,v 1.216 2004/09/27 20:59:21 www Exp $
+# $Id: grades.pm,v 1.217 2004/09/28 20:35:08 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -25,7 +25,6 @@
 #
 # http://www.lon-capa.org/
 #
-###
 
 package Apache::grades;
 use strict;
@@ -992,7 +991,6 @@
     my $request = shift;
     my $iconpath = $request->dir_config('lonIconsURL');
     &commonJSfunctions($request);
-    my $nothing= &Apache::lonhtmlcommon::javascript_nothing();
     $request->print(<<SUBJAVASCRIPT);
 <script type="text/javascript" language="javascript">
 
@@ -1105,7 +1103,7 @@
     pWin = window.open('', 'MessageCenter', 'resizable=yes,toolbar=no,location=no,scrollbars='+scrollbar+',screenx='+xpos+',screeny='+ypos+',width=600,height='+height);
     pWin.focus();
     pDoc = pWin.document;
-    pDoc.open($nothing,'replace');
+    pDoc.open('text/html','replace');
     pDoc.write("<html><head>");
     pDoc.write("<title>Message Central</title>");
 
@@ -1236,7 +1234,7 @@
     hwdWin = window.open('', 'KeywordHighlightCentral', 'resizeable=yes,toolbar=no,location=no,scrollbars=no,width=400,height=300,screenx='+xpos+',screeny='+ypos);
     hwdWin.focus();
     var hDoc = hwdWin.document;
-    hDoc.open($nothing,'replace');
+    hDoc.open('text/html','replace');
     hDoc.write("<html><head>");
     hDoc.write("<title>Highlight Central</title>");