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

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 22 Feb 2005 21:33:27 -0000


albertel		Tue Feb 22 16:33:27 2005 EDT

  Modified files:              
    /loncom/homework	chemresponse.pm 
  Log:
  - the // were mucking things up
  - little xhmtl cleanups
  
  
Index: loncom/homework/chemresponse.pm
diff -u loncom/homework/chemresponse.pm:1.48 loncom/homework/chemresponse.pm:1.49
--- loncom/homework/chemresponse.pm:1.48	Fri Feb 18 18:12:29 2005
+++ loncom/homework/chemresponse.pm	Tue Feb 22 16:33:27 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # chemical equation style response
 #
-# $Id: chemresponse.pm,v 1.48 2005/02/18 23:12:29 albertel Exp $
+# $Id: chemresponse.pm,v 1.49 2005/02/22 21:33:27 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -85,7 +85,6 @@
 <head>
 <title>Molecule Editor</title>
 <script type="text/javascript">
-// <!--
 function submitSmiles() {
     jmeFile = document.applets.JME.jmeFile();
     if (jmeFile == "") {
@@ -99,7 +98,6 @@
 function openHelpWindow() {
     window.open("/adm/jme/jme_help.html","","scrollbars=yes,resizable=yes,width=500,height=600");
 }
-// -->
 </script>
 </head>
 <body bgcolor="#ffffff">
@@ -109,7 +107,7 @@
 $molecule
 <param name="options" value="$options" />
 </applet><br />
-<font face="arial,helvetica,sans-serif" size=-1><a href="http://www.molinspiration.com/jme/index.html">JME Editor</a> courtesy of Peter Ertl, Novartis</font>
+<font face="arial,helvetica,sans-serif" size="-1"><a href="http://www.molinspiration.com/jme/index.html">JME Editor</a> courtesy of Peter Ertl, Novartis</font>
 <form>
 <input type="button" name="submit" value="Insert Answer" onclick = "submitSmiles();" />
 <br />
@@ -125,7 +123,7 @@
     $body=~s/\n/ /g;
     my $docopen=&Apache::lonhtmlcommon::javascript_docopen();
     my $result=<<CHEMINPUT;
-<input type="button" value="Draw Molecule" onclick="javascript:editor=window.open('','','width=500,height=500,scrollbars=no,resizable=yes');editor.$docopen;editor.document.writeln('$body')" />
+<input type="button" value="Draw Molecule" onclick="javascript:editor=window.open('/rat/adm/empty.html','jmeedit','width=500,height=500,menubar=yes,scrollbars=no,resizable=yes');editor.$docopen;editor.document.write('$body');editor.document.close();editor.focus()" />
 CHEMINPUT
     return $result;
 }