diff options
-rw-r--r-- | static/synhestesis.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/static/synhestesis.js b/static/synhestesis.js index 209e896..a665350 100644 --- a/static/synhestesis.js +++ b/static/synhestesis.js @@ -88,7 +88,9 @@ function loadFile( str ) { if( ev.shiftKey ) { pass(); } else { - inputAnswer.change(); + if( inputAnswer.value ) { + inputAnswer.change(); + } } } } @@ -99,7 +101,6 @@ function loadFile( str ) { if( res.answer[indexRes].value != undefined && res.answer[indexRes].value == inputAnswer.value ) valid = true; else if( res.answer[indexRes].values != undefined ) { - console.log("Hello"); console.log( res.answer[indexRes].values ) if( res.answer[indexRes].values.indexOf(inputAnswer.value) != -1 ) valid = true; |