--- loncom/homework/inputtags.pm 2003/04/08 02:37:58 1.89 +++ loncom/homework/inputtags.pm 2003/04/08 13:46:30 1.90 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # input definitons # -# $Id: inputtags.pm,v 1.89 2003/04/08 02:37:58 albertel Exp $ +# $Id: inputtags.pm,v 1.90 2003/04/08 13:46:30 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -264,6 +264,8 @@ sub decideoutput { my $button=0; my $previousmsg; + if (lc $Apache::lonhomework::problemstatus eq 'yes') { + if ($previous) { $previousmsg='You have entered that answer before'; } if ($solved =~ /^correct/) { @@ -336,7 +338,10 @@ sub decideoutput { $message = "Unknown message: $award"; $button=1; } - if ($Apache::lonhomework::type eq 'exam') {$message='';$previousmsg='';} + } elsif ($Apache::lonhomework::type eq 'exam') { + $message = "Answer Submitted"; + $button=1; + } return ($button,$message,$previousmsg); }