--- loncom/homework/chemresponse.pm 2006/05/30 12:45:36 1.66
+++ loncom/homework/chemresponse.pm 2006/07/03 01:16:04 1.68
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# chemical equation style response
#
-# $Id: chemresponse.pm,v 1.66 2006/05/30 12:45:36 www Exp $
+# $Id: chemresponse.pm,v 1.68 2006/07/03 01:16:04 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -235,7 +235,8 @@ sub start_organicresponse {
$result .='
';
$result .=&Apache::edit::text_arg('Correct Answer:','answer',
$token,40);
- $result .=&Apache::edit::hidden_arg('jmeanswer',$token);
+ $result .=&Apache::edit::text_arg('JME string of the answer (automatically updated when using the Draw Molecule button):',
+ 'jmeanswer',$token);
my $jmeanswer=&Apache::lonxml::get_param('jmeanswer',$parstack,
$safeeval);
$result .=&separate_jme_window(
@@ -413,7 +414,7 @@ sub edit_reaction_button {
{'frameset' => 1,
'js_ready' => 1,
'add_entries' => {
- 'rows' => "30%",
+ 'rows' => "30%,*",
'border' => "0",}},);
my $end_page =
&Apache::loncommon::end_page({'frameset' => 1,
@@ -425,6 +426,7 @@ sub edit_reaction_button {
editor=window.open('','','width=500,height=270,scrollbars=no,resizable=yes');
editor.$docopen;
editor.document.writeln('$start_page $end_page');
+ editor.document.close();
}
// -->