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

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 10 Nov 2005 22:01:32 -0000


albertel		Thu Nov 10 17:01:32 2005 EDT

  Modified files:              
    /loncom/homework	structuretags.pm 
  Log:
  - need to handle end_problem target modified by hadn rather than using the default since we are doign redirection
  
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.319 loncom/homework/structuretags.pm:1.320
--- loncom/homework/structuretags.pm:1.319	Wed Nov  9 07:04:23 2005
+++ loncom/homework/structuretags.pm	Thu Nov 10 17:01:30 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.319 2005/11/09 12:04:23 foxr Exp $
+# $Id: structuretags.pm,v 1.320 2005/11/10 22:01:30 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -841,6 +841,9 @@
     } elsif ($target eq 'edit') {
 	&Apache::lonxml::debug("in end_problem with $target, edit");
 	$result .= &problem_edit_footer();
+    } elsif ($target eq 'modified') {
+	 $result .= $token->[2];
+	 $result.=&Apache::edit::handle_insertafter($token->[1]);
     }
 
     if ($env{'request.state'} eq 'construct' && $target eq 'web') {