version 1.77, 2010/11/13 03:22:58
|
version 1.78, 2011/06/08 20:38:47
|
Line 133 sub start_numericalhint {
|
Line 133 sub start_numericalhint {
|
$token,40). |
$token,40). |
&Apache::loncommon::help_open_topic('Formula_Response_Sampling'); |
&Apache::loncommon::help_open_topic('Formula_Response_Sampling'); |
} |
} |
|
$result.=&Apache::edit::text_arg('Pre-Processor Subroutine:','preprocess', |
|
$token,10); |
$result.=&Apache::edit::end_row(); |
$result.=&Apache::edit::end_row(); |
$result.=&Apache::edit::start_spanning_row(); |
$result.=&Apache::edit::start_spanning_row(); |
} elsif ($target eq 'modified') { |
} elsif ($target eq 'modified') { |
Line 140 sub start_numericalhint {
|
Line 142 sub start_numericalhint {
|
if ($token->[1] eq 'numericalhint') { |
if ($token->[1] eq 'numericalhint') { |
$constructtag=&Apache::edit::get_new_args($token,$parstack, |
$constructtag=&Apache::edit::get_new_args($token,$parstack, |
$safeeval,'name', |
$safeeval,'name', |
'answer','unit','format'); |
'answer','unit','format','preprocess'); |
} elsif ($token->[1] eq 'formulahint') { |
} elsif ($token->[1] eq 'formulahint') { |
$constructtag=&Apache::edit::get_new_args($token,$parstack, |
$constructtag=&Apache::edit::get_new_args($token,$parstack, |
$safeeval,'name','answer', |
$safeeval,'name','answer', |
'samples'); |
'samples','preprocess'); |
} |
} |
if ($constructtag) { |
if ($constructtag) { |
$result = &Apache::edit::rebuild_tag($token); |
$result = &Apache::edit::rebuild_tag($token); |
Line 381 sub start_stringhint {
|
Line 383 sub start_stringhint {
|
[['cs','Case Sensitive'],['ci','Case Insensitive'], |
[['cs','Case Sensitive'],['ci','Case Insensitive'], |
['mc','Case Insensitive, Any Order'], |
['mc','Case Insensitive, Any Order'], |
['re','Regular Expression']],$token); |
['re','Regular Expression']],$token); |
|
$result.=&Apache::edit::text_arg('Pre-Processor Subroutine:','preprocess', |
|
$token,10); |
$result.=&Apache::edit::end_row(); |
$result.=&Apache::edit::end_row(); |
$result.=&Apache::edit::start_spanning_row(); |
$result.=&Apache::edit::start_spanning_row(); |
} elsif ($target eq 'modified') { |
} elsif ($target eq 'modified') { |
my $constructtag; |
my $constructtag; |
$constructtag=&Apache::edit::get_new_args($token,$parstack, |
$constructtag=&Apache::edit::get_new_args($token,$parstack, |
$safeeval,'name','answer', |
$safeeval,'name','answer', |
'type'); |
'type','preprocess'); |
$result = &Apache::edit::rebuild_tag($token); |
$result = &Apache::edit::rebuild_tag($token); |
} elsif ($target eq 'web') { |
} elsif ($target eq 'web') { |
&Apache::response::reset_params(); |
&Apache::response::reset_params(); |