Permalink
Browse files

ignore null answers

  • Loading branch information...
1 parent 6f0aa1f commit 92fe0b99e4a611a797baa7a836a4c28eb0e364f3 @MathBrowser committed May 10, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 web/addition/single_digit_addition.js
@@ -42,6 +42,9 @@ function AdditionProblemSet() {
}
AdditionProblemSet.prototype.checkCurrentAnswer = function() {
var response = document.getElementById( "drillresponse" ).value;
+ if( response == "" ) {
+ return;
+ }
response = parseInt( response );
var isCorrect = this.currentProblem.isCorrect( response );
if( ! this.currentProblem.isResponseIncorrect ) {

0 comments on commit 92fe0b9

Please sign in to comment.