--- loncom/homework/lonhomework.pm 2015/03/03 16:54:03 1.349.2.1 +++ loncom/homework/lonhomework.pm 2015/04/14 21:35:56 1.349.2.2 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Homework handler # -# $Id: lonhomework.pm,v 1.349.2.1 2015/03/03 16:54:03 musolffc Exp $ +# $Id: lonhomework.pm,v 1.349.2.2 2015/04/14 21:35:56 musolffc Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1332,8 +1332,7 @@ sub update_construct_style { } # Sets timer to zero for the entire folder containing the current resource for the -# current user. This is called by the done button and the javascript function -# zeroTimer() in lonmenu.pm +# current user. sub zero_timer { my $symb = shift; my $first_access = &Apache::lonnet::get_first_access("map",$symb); @@ -1349,7 +1348,8 @@ sub handler { my ($symb) = &Apache::lonnet::whichuser(); - # Set the event timer to zero if the "done button" was clicked. + # Set the event timer to zero if the "done button" was clicked. The button is + # part of the doneButton form created in lonmenu.pm if ($env{"form.done"} eq "true") { &zero_timer($symb); $env{"form.done"} = "";