--- loncom/xml/scripttag.pm 2010/05/26 12:22:54 1.155 +++ loncom/xml/scripttag.pm 2011/12/10 18:11:05 1.159 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # ".&mt('Script Vars')."
"; - &Apache::lonxml::add_script_result($script_var); + &Apache::lonxml::add_script_result( + &Apache::loncommon::modal_adhoc_window($function_name,500,500, + '
'.&Apache::run::dump($target,$safeeval).'
', + &mt('Script Vars'))."
"); } } elsif ($target eq "edit" ) { #&Apache::run::run($bodytext,$safeeval); @@ -440,7 +424,7 @@ sub start_import { if ($id) { $result.='" id="'.$id; } - $result.='">'; + $result.='" importmode="'.$token->[2]{'importmode'}.'">'; $result.=$bodytext; $result.=''; } @@ -627,7 +611,7 @@ sub start_algebra { $inside = &Apache::run::evaluate($inside,$safeeval,$$parstack[-1]); if ($target eq 'web' || $target eq 'tex' || $target eq 'analyze') { my $style=&Apache::lonxml::get_param('style',$parstack,$safeeval); - $result=&Apache::lontexconvert::algebra($inside,undef,$target,$style,$parstack,$safeeval); + $result=&Apache::lontexconvert::algebra($inside,$target,$style,$parstack,$safeeval); } $Apache::lonxml::post_evaluate=0; }