--- loncom/homework/chemresponse.pm 2003/06/30 18:00:18 1.6 +++ loncom/homework/chemresponse.pm 2003/06/30 20:41:12 1.7 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # chemical equation style response # -# $Id: chemresponse.pm,v 1.6 2003/06/30 18:00:18 albertel Exp $ +# $Id: chemresponse.pm,v 1.7 2003/06/30 20:41:12 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -123,16 +123,15 @@ sub start_organicresponse { $result.= '<input type="hidden" name="MOLECULE_'.$id.'" value="" />'; } elsif ($target eq 'edit') { $result .=&Apache::edit::tag_start($target,$token); - $result .=&Apache::edit::text_arg('Starting Molecule:','molecule', - $token,40); - $result .=&Apache::edit::select_arg('Multipart:','multipart', - ['yes','no'],$token); + $result .='<nobr>'. + &Apache::edit::text_arg('Starting Molecule:','molecule', + $token,40); my $molecule=&Apache::lonxml::get_param('molecule',$parstack, $safeeval); $result .=&seperate_jme_window(undef, &Apache::edit::html_element_name('molecule'), $molecule,'multipart'); - $result .='<br />'; + $result .='</nobr><br /><nobr>'; $result .=&Apache::edit::text_arg('Correct Answer:','answer', $token,40); $result .=&Apache::edit::hidden_arg('jmeanswer',$token); @@ -142,6 +141,9 @@ sub start_organicresponse { &Apache::edit::html_element_name('answer'), &Apache::edit::html_element_name('jmeanswer'), $jmeanswer,'multipart'); + $result .='</nobr>'. + &Apache::edit::select_arg('Multipart:','multipart', + ['no','yes'],$token); $result .=&Apache::edit::end_row().&Apache::edit::start_spanning_row(); } elsif ($target eq 'modified') { my $constructtag=&Apache::edit::get_new_args($token,$parstack, @@ -422,7 +424,7 @@ sub start_reactionresponse { my $id = &Apache::response::start_response($parstack,$safeeval); if ($target eq 'web') { $result.=<<EDITREACTION; -<input type='button' value='Edit Reaction' onClick="javascript:editor=window.open('/adm/jme/reaction_window.html','','width=500,height=270,scrollbars=no,resizable=yes'); document.cookie='problem=$id';"/>' +<input type='button' value='Edit Reaction' onClick="javascript:editor=window.open('/res/adm/reactionresponse/reaction_window.html','','width=500,height=270,scrollbars=no,resizable=yes'); document.cookie='problem=$id';" /> EDITREACTION # $result.=&reaction_javascript();