[LON-CAPA-cvs] cvs: loncom /html/res/adm/pages/reactionresponse reaction_editor.html

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 03 Jul 2006 01:13:51 -0000


albertel		Sun Jul  2 21:13:51 2006 EDT

  Modified files:              
    /loncom/html/res/adm/pages/reactionresponse	reaction_editor.html 
  Log:
  - was initing the rightarrowvar to early (tth isn't setup unitl inside of <body>)
  
  
Index: loncom/html/res/adm/pages/reactionresponse/reaction_editor.html
diff -u loncom/html/res/adm/pages/reactionresponse/reaction_editor.html:1.9 loncom/html/res/adm/pages/reactionresponse/reaction_editor.html:1.10
--- loncom/html/res/adm/pages/reactionresponse/reaction_editor.html:1.9	Tue Mar 29 12:57:52 2005
+++ loncom/html/res/adm/pages/reactionresponse/reaction_editor.html	Sun Jul  2 21:13:51 2006
@@ -1,7 +1,7 @@
 <!-- Chemical reaction editor developed by Guy Ashkenazi, guy@fh.huji.ac.il-->
 
 <!--
- $Id: reaction_editor.html,v 1.9 2005/03/29 17:57:52 albertel Exp $
+ $Id: reaction_editor.html,v 1.10 2006/07/03 01:13:51 albertel Exp $
 
  Copyright Michigan State University Board of Trustees
 
@@ -35,15 +35,7 @@
 var field
 </script>
 <!-- parsed by LON-CAPA to get the correct symbol for the arrow -->
-<display>
-return '<script type="text/javascript">
-          var rightarrow=\''.&xmlparse('<m>$\rightarrow$</m>').'\';
-	  var reaction=\''.&EXT('query.reaction').'\';
-	  var field=\''.&EXT('query.field').'\';
-	  var id=\''.&EXT('query.id').'\';
-        </script>';
-</display>
-<script language="JavaScript">
+<script type="text/javascript">
 
 var level;
 var reactants;
@@ -257,6 +249,15 @@
 </head>
 
 <body bgcolor="#ffffff" onLoad = "javascript:setup();">
+<display>
+return '<script type="text/javascript">
+          var rightarrow=\''.&xmlparse('<m>$\rightarrow$</m>').'\';
+	  var reaction=\''.&EXT('query.reaction').'\';
+	  var field=\''.&EXT('query.field').'\';
+	  var id=\''.&EXT('query.id').'\';
+        </script>';
+</display>
+
 <center>
 <hr />
 <form name="form">