version 1.246, 2018/06/06 18:39:55
|
version 1.248, 2021/01/12 15:52:06
|
Line 473 sub end_customresponse {
|
Line 473 sub end_customresponse {
|
$error = $award; |
$error = $award; |
$award = 'ERROR'; |
$award = 'ERROR'; |
} |
} |
if (($award eq 'INCORRECT' || $award eq 'APPROX_ANS' || |
if (($award eq 'INCORRECT') || ($award eq 'APPROX_ANS') || |
$award eq 'EXACT_ANS')) { |
($award eq 'EXACT_ANS') || ($award eq 'ASSIGNED_SCORE')) { |
if ($Apache::lonhomework::type eq 'survey') { |
if ($Apache::lonhomework::type eq 'survey') { |
$award='SUBMITTED'; |
$award='SUBMITTED'; |
} elsif ($Apache::lonhomework::type eq 'surveycred') { |
} elsif ($Apache::lonhomework::type eq 'surveycred') { |
Line 1312 sub submitted {
|
Line 1312 sub submitted {
|
return 1; |
return 1; |
} |
} |
# Submit All button on a .page was pressed |
# Submit All button on a .page was pressed |
if (defined($env{'form.all_submit'})) { return 1; } |
if ($env{'form.all_submit'}) { return 1; } |
# otherwise no submission occurred |
# otherwise no submission occurred |
return 0; |
return 0; |
} |
} |