version 1.501, 2012/03/25 14:35:58
|
version 1.503, 2012/04/05 09:49:51
|
Line 1181 sub start_problem {
|
Line 1181 sub start_problem {
|
} |
} |
my $resource_due = &Apache::lonhomework::due_date(0, $env{'request.symb'}); |
my $resource_due = &Apache::lonhomework::due_date(0, $env{'request.symb'}); |
my $time_left = $resource_due - time(); |
my $time_left = $resource_due - time(); |
if ($resource_due && ($time_left > 0)) { |
if ($resource_due && ($time_left > 0) && ($target eq 'web')) { |
$result .= &Apache::lonhtmlcommon::set_due_date($resource_due); |
$result .= &Apache::lonhtmlcommon::set_due_date($resource_due); |
} |
} |
|
|
Line 1541 sub end_problem {
|
Line 1541 sub end_problem {
|
|
|
&reset_problem_globals('problem'); |
&reset_problem_globals('problem'); |
|
|
|
# |
|
# This shouild be just above the return so that the |
|
# time put in the javascript is as late as possible in the |
|
# computation: |
|
# |
|
if ($target eq 'web') { |
|
$result .= &Apache::lonhtmlcommon::set_compute_end_time(); |
|
} |
return $result; |
return $result; |
} |
} |
|
|