[LON-CAPA-cvs] cvs: loncom /interface lonpreferences.pm

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 25 Feb 2005 06:48:00 -0000


albertel		Fri Feb 25 01:48:00 2005 EDT

  Modified files:              
    /loncom/interface	lonpreferences.pm 
  Log:
  - when in jsMath mode jsMath.Process was getting aclled twice
  
  
Index: loncom/interface/lonpreferences.pm
diff -u loncom/interface/lonpreferences.pm:1.54 loncom/interface/lonpreferences.pm:1.55
--- loncom/interface/lonpreferences.pm:1.54	Fri Feb 25 00:54:01 2005
+++ loncom/interface/lonpreferences.pm	Fri Feb 25 01:48:00 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Preferences
 #
-# $Id: lonpreferences.pm,v 1.54 2005/02/25 05:54:01 albertel Exp $
+# $Id: lonpreferences.pm,v 1.55 2005/02/25 06:48:00 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -231,8 +231,10 @@
 </script>
 
 $jsMath_example</p>
-<script type="text/javascript">jsMath.Process()</script>
 ENDLSCREEN
+    if ($ENV{'environment.texengine'} ne 'jsMath') {
+	$r->print('<script type="text/javascript">jsMath.Process()</script>');
+    }
 }