--- loncom/xml/scripttag.pm 2010/06/02 21:27:50 1.156 +++ loncom/xml/scripttag.pm 2011/12/09 22:04:55 1.158 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # ".&mt('Script Vars')."
"; - &Apache::lonxml::add_script_result($script_var); + my $scriptblocklog=$start_page. + &Apache::loncommon::start_scrollbox('500px','480px','480px'). + '
'.&Apache::run::dump($target,$safeeval).'
'. + &Apache::loncommon::end_scrollbox(). + $end_page; + $scriptblocklog=~s/\'/\\'/gs; + &Apache::lonxml::add_script_result( + &Apache::loncommon::modal_adhoc_script($function_name,500,500,$scriptblocklog). + "".&mt('Script Vars')."
" + ); } } elsif ($target eq "edit" ) { #&Apache::run::run($bodytext,$safeeval); @@ -627,7 +626,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; }