[LON-CAPA-cvs] cvs: loncom /homework structuretags.pm
albertel
lon-capa-cvs-allow@mail.lon-capa.org
Fri, 12 Oct 2007 18:45:04 -0000
albertel Fri Oct 12 14:45:04 2007 EDT
Modified files:
/loncom/homework structuretags.pm
Log:
- remove headers from Edit mode in remote mode in CSTR
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.401 loncom/homework/structuretags.pm:1.402
--- loncom/homework/structuretags.pm:1.401 Tue Oct 9 19:32:57 2007
+++ loncom/homework/structuretags.pm Fri Oct 12 14:45:03 2007
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.401 2007/10/09 23:32:57 albertel Exp $
+# $Id: structuretags.pm,v 1.402 2007/10/12 18:45:03 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -158,7 +158,9 @@
} elsif (!defined($found{'body'})
&& $env{'request.state'} eq 'construct') {
if ($target eq 'web' || $target eq 'edit') {
- # no extra args to bodytag
+ if ($env{'environment.remote'} ne 'off') {
+ $body_args{'only_body'} = 1;
+ }
}
} elsif (!defined($found{'body'})) {
my %add_entries;