--- loncom/homework/imageresponse.pm 2003/10/27 20:04:34 1.38 +++ loncom/homework/imageresponse.pm 2003/10/30 20:52:54 1.39 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # image click response style # -# $Id: imageresponse.pm,v 1.38 2003/10/27 20:04:34 albertel Exp $ +# $Id: imageresponse.pm,v 1.39 2003/10/30 20:52:54 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -265,9 +265,7 @@ sub start_text { &Apache::edit::editfield($token->[1],$descr,'Text',60,2). &Apache::edit::end_row(); } elsif ($target eq "modified") { - my $descr=&Apache::lonxml::get_all_text('/text',$parser); - $result=$token->[4].&Apache::edit::modifiedfield($token); - &Apache::lonxml::debug($result); + $result=$token->[4].&Apache::edit::modifiedfield('/text',$parser); } return $result; } @@ -305,9 +303,7 @@ sub start_image { $result.=&Apache::edit::search(undef,'textnode'). &Apache::edit::end_row(); } elsif ($target eq "modified") { - my $bgimg=&Apache::lonxml::get_all_text('/image',$parser); - $result=$token->[4].&Apache::edit::modifiedfield($token); - &Apache::lonxml::debug($result); + $result=$token->[4].&Apache::edit::modifiedfield('/image',$parser); } return $result; } @@ -454,9 +450,7 @@ sub start_rectangle { &Apache::edit::entercoordpair(undef,'textnode'). &Apache::edit::end_row(); } elsif ($target eq "modified") { - my $coords=&Apache::lonxml::get_all_text('/rectangle',$parser); - $result=$token->[4].&Apache::edit::modifiedfield($token); - &Apache::lonxml::debug($result); + $result=$token->[4].&Apache::edit::modifiedfield('/rectangle',$parser); } return $result; }