version 1.92, 2015/01/19 15:35:53
|
version 1.94, 2018/06/07 15:58:10
|
Line 171 sub end_itemgroup {
|
Line 171 sub end_itemgroup {
|
} |
} |
if ($target eq 'web') { |
if ($target eq 'web') { |
|
|
my $table='<br /><table>'; # extra space to match what latex does. |
my $table='<table class="LC_itemgroup">'; # extra space to match what latex does. |
if ((!$columns) || ($columns < 0)) { |
if ((!$columns) || ($columns < 0)) { |
if ($direction eq 'horizontal') { |
if ($direction eq 'horizontal') { |
if (@names > 0) { |
if (@names > 0) { |
Line 685 sub displayfoils {
|
Line 685 sub displayfoils {
|
my $last_letter=$name_letter_map{$lastopt}; |
my $last_letter=$name_letter_map{$lastopt}; |
my $optionlist = ''; |
my $optionlist = ''; |
if ($target ne 'tex') { |
if ($target ne 'tex') { |
$optionlist="<option></option>\n"; |
$optionlist="<option value=\"\"></option>\n"; |
} else { |
} else { |
if ($Apache::lonhomework::type ne 'exam') { |
if ($Apache::lonhomework::type ne 'exam') { |
if($env{'form.pdfFormFields'} eq 'yes' |
if($env{'form.pdfFormFields'} eq 'yes' |
Line 702 sub displayfoils {
|
Line 702 sub displayfoils {
|
foreach $option (@used_letters) { |
foreach $option (@used_letters) { |
if ($option eq $last_letter) { |
if ($option eq $last_letter) { |
if ($target ne 'tex') { |
if ($target ne 'tex') { |
$optionlist.="<option selected=\"selected\">$option</option>\n"; |
$optionlist.="<option value=\"$option\" selected=\"selected\">$option</option>\n"; |
} elsif ($target eq 'tex' && $env{'form.pdfFormFields'} eq 'yes' |
} elsif ($target eq 'tex' && $env{'form.pdfFormFields'} eq 'yes' |
&& $Apache::inputtags::status['-1'] eq 'CAN_ANSWER' |
&& $Apache::inputtags::status['-1'] eq 'CAN_ANSWER' |
&& $Apache::lonhomework::type ne 'exam') { |
&& $Apache::lonhomework::type ne 'exam') { |
Line 710 sub displayfoils {
|
Line 710 sub displayfoils {
|
} |
} |
} else { |
} else { |
if ($target ne 'tex') { |
if ($target ne 'tex') { |
$optionlist.="<option>$option</option>\n"; |
$optionlist.="<option value=\"$option\">$option</option>\n"; |
} elsif ($target eq 'tex' && $env{'form.pdfFormFields'} eq 'yes' |
} elsif ($target eq 'tex' && $env{'form.pdfFormFields'} eq 'yes' |
&& $Apache::inputtags::status['-1'] eq 'CAN_ANSWER' |
&& $Apache::inputtags::status['-1'] eq 'CAN_ANSWER' |
&& $Apache::lonhomework::type ne 'exam') { |
&& $Apache::lonhomework::type ne 'exam') { |