--- loncom/homework/chemresponse.pm 2005/06/26 22:18:32 1.57 +++ loncom/homework/chemresponse.pm 2006/03/09 00:48:47 1.63 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # chemical equation style response # -# $Id: chemresponse.pm,v 1.57 2005/06/26 22:18:32 albertel Exp $ +# $Id: chemresponse.pm,v 1.63 2006/03/09 00:48:47 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -82,7 +82,7 @@ JMESECTION if ($molecule) { $molecule=''; } my $insert_answer; - if ($shown_text ne '') { + if ($shown_text eq '') { $insert_answer= ''; } @@ -105,17 +105,40 @@ function submitSmiles() { function openHelpWindow() { window.open("/adm/jme/jme_help.html","","scrollbars=yes,resizable=yes,width=500,height=600"); } +function substituent(r) {document.applets.JME.setSubstituent(r);}