[LON-CAPA-cvs] cvs: loncom /homework bridgetask.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Wed, 29 Mar 2006 04:53:42 -0000
albertel Tue Mar 28 23:53:42 2006 EDT
Modified files:
/loncom/homework bridgetask.pm
Log:
- make it so the after effects of a global <introParagraph> take effect
Index: loncom/homework/bridgetask.pm
diff -u loncom/homework/bridgetask.pm:1.126 loncom/homework/bridgetask.pm:1.127
--- loncom/homework/bridgetask.pm:1.126 Tue Mar 28 17:03:47 2006
+++ loncom/homework/bridgetask.pm Tue Mar 28 23:53:42 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: bridgetask.pm,v 1.126 2006/03/28 22:03:47 albertel Exp $
+# $Id: bridgetask.pm,v 1.127 2006/03/29 04:53:42 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1875,7 +1875,7 @@
$dimension{'intro'}=&Apache::lonxml::get_all_text('/introparagraph',$parser,$style);
} elsif ($target eq 'webgrade') {
- &Apache::lonxml::get_all_text('/introparagraph',$parser,$style);
+ &Apache::lonxml::startredirection();
}
}
@@ -1883,6 +1883,10 @@
}
sub end_IntroParagraph {
+ my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_;
+ if ($target eq 'webgrade') {
+ my $result = &Apache::lonxml::endredirection();
+ }
}
sub start_Instance {