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

raeburn raeburn at source.lon-capa.org
Wed Apr 7 18:16:03 EDT 2021


raeburn		Wed Apr  7 22:16:03 2021 EDT

  Modified files:              
    /loncom/homework	chemresponse.pm 
  Log:
  - Pass value of options attribute in organicresponse tag when launching
    JSME Molecular Editor (was passed to JME predecessor).
  
  
Index: loncom/homework/chemresponse.pm
diff -u loncom/homework/chemresponse.pm:1.99 loncom/homework/chemresponse.pm:1.100
--- loncom/homework/chemresponse.pm:1.99	Wed Jan  4 20:09:08 2017
+++ loncom/homework/chemresponse.pm	Wed Apr  7 22:16:03 2021
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # chemical equation style response
 #
-# $Id: chemresponse.pm,v 1.99 2017/01/04 20:09:08 damieng Exp $
+# $Id: chemresponse.pm,v 1.100 2021/04/07 22:16:03 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -199,7 +199,7 @@
 function jsmeOnLoad() {
     document.getElementById('JMErefresh').style.display="none";
     document.getElementById('JMEcredits').style.display="inline";
-    jsmeApplet = new JSApplet.JSME("jme", "420px", "330px");
+    jsmeApplet = new JSApplet.JSME("jme", "420px", "330px", {"options" : "$options"});
     document.JME = jsmeApplet;
     $molecule;
     document.getElementById('JMEbuttons').style.display="block";




More information about the LON-CAPA-cvs mailing list