version 1.517, 2014/02/28 19:19:46
|
version 1.520, 2014/09/14 15:21:43
|
Line 254 function image_response_click (which, e)
|
Line 254 function image_response_click (which, e)
|
input_element.value = click; |
input_element.value = click; |
img_element.src = '/adm/randomlabel.png?token='+token+'&clickdata='+click; |
img_element.src = '/adm/randomlabel.png?token='+token+'&clickdata='+click; |
} |
} |
|
|
|
var submithandled = 0; |
|
|
|
$(document).ready(function(){ |
|
$(document).delegate('form :submit', 'click', function( event ) { |
|
if ( $( this ).hasClass( "LC_hwk_submit" ) ) { |
|
var buttonId = this.id; |
|
if (submithandled == 0) { |
|
submithandled = 1; |
|
$( "#msg_"+buttonId ).css({"display": "inline","background-color": "#87cefa", |
|
"color": "black","padding": "2px"}) ; |
|
$( ".LC_status_"+buttonId ).hide(); |
|
if (( $(this.form).id == "LC_page" ) && ($('input[name="all_submit"]').length )) { |
|
if (( "#"+buttonId+"_pressed" ).length) { |
|
$( "#"+buttonId+"_pressed" ).val( "1" ); |
|
} |
|
} |
|
$(this.form).submit(); |
|
$( this ).attr( "disabled", true); |
|
event.preventDefault(); |
|
return true; |
|
} |
|
} |
|
}); |
|
}); |
|
|
// ]]> |
// ]]> |
</script> |
</script> |
JS |
JS |
Line 414 sub page_start {
|
Line 440 sub page_start {
|
$body_args{'add_entries'} = \%add_entries; |
$body_args{'add_entries'} = \%add_entries; |
if ( $env{'request.state'} eq 'construct') { |
if ( $env{'request.state'} eq 'construct') { |
$body_args{'only_body'} = 1; |
$body_args{'only_body'} = 1; |
|
} elsif ($target eq 'web') { |
|
$body_args{'print_suppress'} = 1; |
} |
} |
} |
} |
$body_args{'no_auto_mt_title'} = 1; |
$body_args{'no_auto_mt_title'} = 1; |
Line 1168 sub start_problem {
|
Line 1196 sub start_problem {
|
$target eq 'tex') { |
$target eq 'tex') { |
if ($env{'form.markaccess'}) { |
if ($env{'form.markaccess'}) { |
my @interval=&Apache::lonnet::EXT("resource.0.interval"); |
my @interval=&Apache::lonnet::EXT("resource.0.interval"); |
&Apache::lonnet::set_first_access($interval[1]); |
&Apache::lonnet::set_first_access($interval[1],$interval[0]); |
} |
} |
|
|
($status,$accessmsg,$slot_name,$slot) = |
($status,$accessmsg,$slot_name,$slot) = |