version 1.355, 2021/09/07 20:37:33
|
version 1.357, 2023/03/30 23:25:47
|
Line 474 sub start_textline {
|
Line 474 sub start_textline {
|
|
|
$result .= &spellcheck_onblur($itemid, $spellcheck); |
$result .= &spellcheck_onblur($itemid, $spellcheck); |
if (($Apache::inputtags::status['-1'] eq 'CAN_ANSWER') && |
if (($Apache::inputtags::status['-1'] eq 'CAN_ANSWER') && |
(($tagstack->[-2] eq 'formularesponse') || ($tagstack->[-2] eq 'mathresponse')) && |
(((($tagstack->[-2] eq 'formularesponse') || ($tagstack->[-2] eq 'mathresponse')) && |
(&Apache::lonnet::EXT('resource.'.$partid.'_'.$id.'.turnoffeditor') ne 'yes')) { |
(&Apache::lonnet::EXT('resource.'.$partid.'_'.$id.'.turnoffeditor') ne 'yes')) || |
|
(($tagstack->[-2] eq 'customresponse') && |
|
(&Apache::lonnet::EXT('resource.'.$partid.'_'.$id.'.turnoffeditor') eq 'no')))) { |
$result.=&edit_mathresponse_button($input_tag_id); |
$result.=&edit_mathresponse_button($input_tag_id); |
} |
} |
} |
} |
Line 657 sub file_selector {
|
Line 659 sub file_selector {
|
$result .= &Apache::lonhtmlcommon::row_title($addfiles); |
$result .= &Apache::lonhtmlcommon::row_title($addfiles); |
my $constraints; |
my $constraints; |
if ($uploadedfiletypes ne '*') { |
if ($uploadedfiletypes ne '*') { |
|
my $showtypes = $uploadedfiletypes; |
|
if ($showtypes =~ /,/) { |
|
my $conjunc = &mt('or'); |
|
$showtypes =~ s/,([^,]+)$/ $conjunc $1/; |
|
} |
$constraints = |
$constraints = |
&mt('Allowed filetypes: [_1]','<b>'.$uploadedfiletypes.'</b>').'<br />'; |
&mt('Allowed filetypes: [_1]','<b>'.$showtypes.'</b>').'<br />'; |
} |
} |
if ($maxfilesize) { |
if ($maxfilesize) { |
$constraints .= &mt('Combined size of all files not to exceed: [_1] MB.', |
$constraints .= &mt('Combined size of all files not to exceed: [_1] MB.', |