From 550462647f1f330d72853a546767f3869a6bae94 Mon Sep 17 00:00:00 2001 From: ache Date: Sat, 2 Feb 2019 11:33:56 +0100 Subject: Fix empty input --- static/synhestesis.js | 5 +++-- 1 file 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; -- cgit v1.2.3