Diff for /loncom/homework/structuretags.pm between versions 1.38 and 1.39

version 1.38, 2001/05/15 20:48:43 version 1.39, 2001/05/31 22:37:56
Line 64  sub start_problem { Line 64  sub start_problem {
     }       } 
   }    }
   if ($target eq 'web') {    if ($target eq 'web') {
     my $args ='';      my $name= &Apache::lonxml::get_param('name',$parstack,$safeeval);
     if ( $#$parstack > -1 ) { $args=$$parstack[$#$parstack]; }  
     my $name = &Apache::run::run("{$args;".'return $name}',$safeeval);  
     if ($name eq '') {       if ($name eq '') { 
       $name=&Apache::lonnet::EXT('resource.title');        $name=&Apache::lonnet::EXT('resource.title');
       if ($name eq 'con_lost') { $name = ''; }        if ($name eq 'con_lost') { $name = ''; }
Line 95  sub start_problem { Line 93  sub start_problem {
 <input type="submit" name="problemmode" value="View" />  <input type="submit" name="problemmode" value="View" />
 <input type="submit" name="Undo" value="undo" /> <hr />  <input type="submit" name="Undo" value="undo" /> <hr />
 ';  ';
     my $temp=&Apache::edit::insertlist($token,$target);      my $temp=&Apache::edit::insertlist($target,$token);
     $result.=$temp;      $result.=$temp;
     return $result;      return $result;
   }    }
Line 249  sub end_randomlist { Line 247  sub end_randomlist {
   
 sub start_part {  sub start_part {
   my ($target,$token,$parstack,$parser,$safeeval)=@_;    my ($target,$token,$parstack,$parser,$safeeval)=@_;
   my $args ='';    my $id= &Apache::lonxml::get_param('id',$parstack,$safeeval);
   if ( $#$parstack > -1 ) { $args=$$parstack[$#$parstack]; }  
   my $id = &Apache::run::run("{$args;".'return $id}',$safeeval);  
   $Apache::inputtags::part=$id;    $Apache::inputtags::part=$id;
   @Apache::inputtags::responselist = ();    @Apache::inputtags::responselist = ();
   if ($target eq 'meta') {    if ($target eq 'meta') {

Removed from v.1.38  
changed lines
  Added in v.1.39


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