--- loncom/homework/lonhomework.pm 2003/01/28 00:13:37 1.107 +++ loncom/homework/lonhomework.pm 2003/04/03 21:46:27 1.119 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Homework handler # -# $Id: lonhomework.pm,v 1.107 2003/01/28 00:13:37 albertel Exp $ +# $Id: lonhomework.pm,v 1.119 2003/04/03 21:46:27 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -65,11 +65,12 @@ sub get_target { && ($ENV{'form.grade_target'} eq 'tex')) { return ($ENV{'form.grade_target'}); } elsif ( defined($ENV{'form.grade_target'} ) - && ($Apache::lonhomework::viewgrades == 'F' )) { + && ($Apache::lonhomework::viewgrades eq 'F' )) { 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.=' +