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

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 09 Jun 2003 22:31:56 -0000


albertel		Mon Jun  9 18:31:56 2003 EDT

  Modified files:              
    /loncom/homework	imageresponse.pm 
  Log:
  - looks prettier
  
  
Index: loncom/homework/imageresponse.pm
diff -u loncom/homework/imageresponse.pm:1.29 loncom/homework/imageresponse.pm:1.30
--- loncom/homework/imageresponse.pm:1.29	Mon Jun  9 18:29:45 2003
+++ loncom/homework/imageresponse.pm	Mon Jun  9 18:31:56 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # image click response style
 #
-# $Id: imageresponse.pm,v 1.29 2003/06/09 22:29:45 albertel Exp $
+# $Id: imageresponse.pm,v 1.30 2003/06/09 22:31:56 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -51,10 +51,13 @@
 }
 
 sub end_imageresponse {
-  &Apache::response::end_response;
-  pop @Apache::lonxml::namespace;
-  &Apache::lonxml::deregister('Apache::imageresponse',('foilgroup','foil','text','image','rectangle','conceptgroup'));
-  return '';
+    my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_;
+    &Apache::response::end_response;
+    pop @Apache::lonxml::namespace;
+    &Apache::lonxml::deregister('Apache::imageresponse',('foilgroup','foil','text','image','rectangle','conceptgroup'));
+    my $result;
+    if ($target eq 'edit') { $result=&Apache::edit::end_table(); }
+    return $result;
 }
 
 %Apache::response::foilgroup=();