--- loncom/homework/inputtags.pm 2019/11/20 22:53:37 1.350 +++ loncom/homework/inputtags.pm 2019/11/20 23:00:04 1.351 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # input definitons # -# $Id: inputtags.pm,v 1.350 2019/11/20 22:53:37 raeburn Exp $ +# $Id: inputtags.pm,v 1.351 2019/11/20 23:00:04 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1212,9 +1212,10 @@ sub decideoutput { my ($used,$min,$max)=split(':',$awardmsg); my $word = ($used < $min) ? 'more' : 'fewer'; $message = &mt("Submission not graded. Use $word digits.",$used); - $css_class=$possible_class{'not_charged_try'}; if (&Apache::lonhomework::show_some_problem_status()) { $css_class=$possible_class{'no_charge_warn'}; + } else { + $css_class=$possible_class{'not_charged_try'}; } $button=1; } elsif ($award eq 'UNIT_INVALID_INSTRUCTOR') {