Diff for /loncom/xml/scripttag.pm between versions 1.53 and 1.54

version 1.53, 2001/10/05 22:29:10 version 1.54, 2001/10/13 06:00:04
Line 31  sub start_script { Line 31  sub start_script {
     my $bodytext=&Apache::lonxml::get_all_text("/script",$$parser[$#$parser]);      my $bodytext=&Apache::lonxml::get_all_text("/script",$$parser[$#$parser]);
     if ( $target eq "modified" ) {      if ( $target eq "modified" ) {
       $result=$token->[4].&Apache::edit::modifiedfield();        $result=$token->[4].&Apache::edit::modifiedfield();
     } elsif ( $target eq "web" || $target eq "grade" || $target eq 'answer') {      } elsif ( $target eq 'web' || $target eq 'tex' ||
         $target eq 'grade' || $target eq 'answer') {
       &Apache::run::run($bodytext,$safeeval);        &Apache::run::run($bodytext,$safeeval);
       if (($ENV{'request.state'} eq 'construct') && ($target eq 'web')) {        if (($ENV{'request.state'} eq 'construct') && ($target eq 'web')) {
  $Apache::lonxml::evaluate--;   $Apache::lonxml::evaluate--;
Line 77  sub start_display { Line 78  sub start_display {
   
   if ( $target eq "modified" ) {    if ( $target eq "modified" ) {
     $result=$token->[4].&Apache::edit::modifiedfield();      $result=$token->[4].&Apache::edit::modifiedfield();
   } elsif ( $target eq "web" || $target eq "grade" || $target eq 'answer') {    } elsif ( $target eq 'web' || $target eq 'tex' ||
       $target eq 'grade' || $target eq 'answer') {
     $result=&Apache::run::run($bodytext,$safeeval);      $result=&Apache::run::run($bodytext,$safeeval);
     if ($target eq 'grade' ) {      if ($target eq 'grade' ) {
       $result=''; # grade should produce no output        $result=''; # grade should produce no output

Removed from v.1.53  
changed lines
  Added in v.1.54


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>