[LON-CAPA-cvs] cvs: loncom /homework chemresponse.pm

raeburn lon-capa-cvs-allow@mail.lon-capa.org
Sun, 21 Sep 2008 20:28:27 -0000


raeburn		Sun Sep 21 16:28:27 2008 EDT

  Modified files:              
    /loncom/homework	chemresponse.pm 
  Log:
  - "Edit Answer" buttons for "Answer" and "Initial Reaction" in Chemical Reaction Response block in colorful editor removed in 1.80 restored.  (Pencil icon now used instead of button).
  - CSS: nobr tag replaced with <span class="LC_nobreak>.
  
  
Index: loncom/homework/chemresponse.pm
diff -u loncom/homework/chemresponse.pm:1.81 loncom/homework/chemresponse.pm:1.82
--- loncom/homework/chemresponse.pm:1.81	Sun Sep 21 16:09:06 2008
+++ loncom/homework/chemresponse.pm	Sun Sep 21 16:28:27 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # chemical equation style response
 #
-# $Id: chemresponse.pm,v 1.81 2008/09/21 20:09:06 raeburn Exp $
+# $Id: chemresponse.pm,v 1.82 2008/09/21 20:28:27 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -503,11 +503,13 @@
 	$result .=&Apache::edit::tag_start($target,$token);
 	my $answer=&Apache::lonxml::get_param('answer',$parstack,
 						$safeeval);
-	$result .='<nobr>'.
+	$result .='<span class="LC_nobreak">'.
 	    &Apache::edit::text_arg('Answer:','answer',$token,40);
+	$result .=&edit_reaction_button($id,&Apache::edit::html_element_name('answer'),$answer).'</span>';
 	my $initial=&Apache::lonxml::get_param('initial',$parstack,$safeeval);
-	$result.='<nobr>'.
+	$result.='<span class="LC_nobreak">'.
 	    &Apache::edit::text_arg('Initial Reaction:','initial',$token,40);
+	$result .=&edit_reaction_button($id,&Apache::edit::html_element_name('initial'),$initial).'</span>';
 	$result .=&Apache::edit::end_row().&Apache::edit::start_spanning_row();
     }  elsif ($target eq 'modified') {
 	my $constructtag=&Apache::edit::get_new_args($token,$parstack,