--- loncom/homework/lonhomework.pm 2003/02/13 21:14:35 1.108 +++ loncom/homework/lonhomework.pm 2003/04/03 20:05:21 1.118 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Homework handler # -# $Id: lonhomework.pm,v 1.108 2003/02/13 21:14:35 albertel Exp $ +# $Id: lonhomework.pm,v 1.118 2003/04/03 20:05:21 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -69,7 +69,8 @@ sub get_target { return ($ENV{'form.grade_target'}); } - if ( defined($ENV{'form.submitted'})) { + if ( defined($ENV{'form.submitted'}) && + ( !defined($ENV{'form.resetdata'}))) { return ('grade', 'web'); } else { return ('web'); @@ -339,7 +340,9 @@ sub handle_save_or_undo { sub analyze_header { my ($request) = @_; - my $result.='
+ my $result.=' +