--- loncom/homework/chemresponse.pm 2005/06/26 22:18:32 1.57 +++ loncom/homework/chemresponse.pm 2005/06/30 18:56:35 1.60 @@ -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.60 2005/06/30 18:56:35 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,39 @@ 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);}