[LON-CAPA-cvs] cvs: loncom /xml scripttag.pm

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 30 Oct 2003 20:20:00 -0000


albertel		Thu Oct 30 15:20:00 2003 EDT

  Modified files:              
    /loncom/xml	scripttag.pm 
  Log:
  - <comment> tag works in Edit now
  
  
Index: loncom/xml/scripttag.pm
diff -u loncom/xml/scripttag.pm:1.101 loncom/xml/scripttag.pm:1.102
--- loncom/xml/scripttag.pm:1.101	Fri Oct  3 13:15:01 2003
+++ loncom/xml/scripttag.pm	Thu Oct 30 15:20:00 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # <script> definiton
 #
-# $Id: scripttag.pm,v 1.101 2003/10/03 17:15:01 albertel Exp $
+# $Id: scripttag.pm,v 1.102 2003/10/30 20:20:00 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -106,7 +106,7 @@
   if ($type eq "loncapa/perl") {
     my $bodytext=&Apache::lonxml::get_all_text("/script",$parser);
     if ( $target eq "modified" ) {
-      $result=$token->[4].&Apache::edit::modifiedfield();
+	$result=$token->[4].&Apache::edit::modifiedfield();
     } elsif ( $target eq 'web' || $target eq 'tex' ||
 	      $target eq 'grade' || $target eq 'answer' ||
 	      $target eq 'analyze' ) {
@@ -450,6 +450,7 @@
     my $bodytext=&Apache::lonxml::get_all_text("/comment",$parser);
     $result.=&Apache::edit::editfield($token->[1],$bodytext,'',80,4)
   } elsif ( $target eq 'modified') {
+    my $bodytext=&Apache::lonxml::get_all_text("/comment",$parser);
     $result=$token->[4].&Apache::edit::modifiedfield($token);
   } elsif ( $target eq 'web' || $target eq 'tex' || $target eq 'grade' ||
 	    $target eq 'answer' || $target eq 'meta' || $target eq 'analyze') {