version 1.333.2.12.2.4, 2023/09/11 12:09:06
|
version 1.333.2.14, 2023/09/11 13:44:18
|
Line 1356 sub decideoutput {
|
Line 1356 sub decideoutput {
|
my $first_access=&Apache::lonnet::get_first_access($interval[1]); |
my $first_access=&Apache::lonnet::get_first_access($interval[1]); |
if (defined($first_access)) { |
if (defined($first_access)) { |
my $due_date= &Apache::lonnet::EXT("resource.$part.duedate"); |
my $due_date= &Apache::lonnet::EXT("resource.$part.duedate"); |
my ($timelimit) = ($interval[0] =~ /^(\d+)/); |
unless (($due_date) && ($due_date < $first_access + $interval[0])) { |
unless (($due_date) && ($due_date < $first_access + $timelimit)) { |
|
$message = &mt("Answer Submitted: Your final submission will be graded when the time limit is reached."); |
$message = &mt("Answer Submitted: Your final submission will be graded when the time limit is reached."); |
} |
} |
} |
} |
Line 1759 sub gradestatus {
|
Line 1758 sub gradestatus {
|
} |
} |
if ( $showbutton ) { |
if ( $showbutton ) { |
if ($target ne 'tex') { |
if ($target ne 'tex') { |
if ($env{'form.disable_submit'}) { |
$button = |
$button = '<input type="submit" name="submit_'.$id.'" id="submit_'.$id.'" class="LC_hwk_submit" value="'.&mt('Submit Answer').'" disabled="disabled" /> '. |
|
'<div id="msg_submit_'.$id.'" style="display:none"></div>'; |
|
} else { |
|
$button = |
|
'<input onmouseup="javascript:setSubmittedPart(\''.$id.'\');this.form.action+=\'#'.&escape($id).'\';" |
'<input onmouseup="javascript:setSubmittedPart(\''.$id.'\');this.form.action+=\'#'.&escape($id).'\';" |
type="submit" name="submit_'.$id.'" id="submit_'.$id.'" class="LC_hwk_submit" |
type="submit" name="submit_'.$id.'" id="submit_'.$id.'" class="LC_hwk_submit" |
value="'.&mt('Submit Answer').'" /> '. |
value="'.&mt('Submit Answer').'" /> '. |
'<div id="msg_submit_'.$id.'" style="display:none">'. |
'<div id="msg_submit_'.$id.'" style="display:none">'. |
&mt('Processing your submission ...').'</div>'; |
&mt('Processing your submission ...').'</div>'; |
} |
|
} |
} |
} |
} |
|
|