version 1.521, 2014/09/15 17:45:35
|
version 1.523, 2014/11/21 18:04:57
|
Line 283 $(document).ready(function(){
|
Line 283 $(document).ready(function(){
|
submithandled = 1; |
submithandled = 1; |
$( "#msg_"+buttonId ).css({"display": "inline","background-color": "#87cefa", |
$( "#msg_"+buttonId ).css({"display": "inline","background-color": "#87cefa", |
"color": "black","padding": "2px"}) ; |
"color": "black","padding": "2px"}) ; |
$( ".LC_status_"+buttonId ).hide(); |
|
if (( $(this.form).id == "LC_page" ) && ($('input[name="all_submit"]').length )) { |
if (( $(this.form).id == "LC_page" ) && ($('input[name="all_submit"]').length )) { |
if (( "#"+buttonId+"_pressed" ).length) { |
if (buttonId != "all_submit") { |
$( "#"+buttonId+"_pressed" ).val( "1" ); |
$( ".LC_status_"+buttonId ).hide(); |
|
if (( "#"+buttonId+"_pressed" ).length) { |
|
$( "#"+buttonId+"_pressed" ).val( "1" ); |
|
} |
} |
} |
|
} else { |
|
$( ".LC_status_"+buttonId ).hide(); |
} |
} |
$(this.form).submit(); |
$(this.form).submit(); |
$( ".LC_hwk_submit" ).prop( "disabled", true); |
$( ".LC_hwk_submit" ).prop( "disabled", true); |
Line 299 $(document).ready(function(){
|
Line 303 $(document).ready(function(){
|
}); |
}); |
}); |
}); |
|
|
|
|
// ]]> |
// ]]> |
</script> |
</script> |
JS |
JS |
Line 894 sub initialize_storage {
|
Line 897 sub initialize_storage {
|
|
|
=item finalize_storage() |
=item finalize_storage() |
|
|
Stores away the result has to a student's environment |
Stores away the result hash to a student's environment |
checks form.grade_ for specific values, other wises stores |
checks form.grade_ for specific values, otherwise stores |
to the running users environment |
to the running user's environment. |
Will increment totals for attempts, students, and corrects |
Will increment totals for attempts, students, and corrects |
if running user has student role. |
if running user has student role. |
|
|