--- loncom/homework/randomlabel.pm 2002/05/17 21:16:55 1.26 +++ loncom/homework/randomlabel.pm 2002/05/17 21:27:44 1.27 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # random labelling tool # -# $Id: randomlabel.pm,v 1.26 2002/05/17 21:16:55 albertel Exp $ +# $Id: randomlabel.pm,v 1.27 2002/05/17 21:27:44 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -339,9 +339,11 @@ sub start_label { push(@Apache::randomlabel::label_arr,$ltext); } elsif ($target eq 'edit') { $result.=&Apache::edit::tag_start($target,$token,"$type Label"); - $result.=&Apache::edit::text_arg('Description:','description',$token); my $text=&Apache::lonxml::get_all_text("/label",$$parser[-1]); - $result.=&Apache::edit::end_row().&Apache::edit::start_spanning_row(); + if ($type eq 'image') { + $result.=&Apache::edit::end_row().&Apache::edit::start_spanning_row(); + $result.=&Apache::edit::text_arg('Description:','description',$token); + } if ($type eq 'text') { $result.="Label Text:"; } if ($type eq 'image') { $result.="Path to image:"; } $result.=&Apache::edit::editline('',$text,'',20).