diff options
| -rw-r--r-- | scripts/textanalysis-ui.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/textanalysis-ui.js b/scripts/textanalysis-ui.js index 9b8371f0..66d270d8 100644 --- a/scripts/textanalysis-ui.js +++ b/scripts/textanalysis-ui.js @@ -51,13 +51,13 @@ $("#textanalyser").keypress(function(e) { graph.history.record_keystrokes(KEYSTROKE_WHERE_TEXTANALYSIS, [e.which]); } if (e.which == 13) { - if(!suggestionChange){ + if(!suggestionChange) { text = $('#textanalyser').val(); $('#textanalyser').val(""); analyzeSentence(text, true); - typeStack=[]; + typeStack = []; } else { - suggestionChange=false; + suggestionChange = false; } return false; } @@ -94,10 +94,10 @@ $(document).keydown(function(e) { } if (e.keyCode == 38) {//UP - suggestionChange=true; + suggestionChange = true; } if (e.keyCode == 40) {//DOWN - suggestionChange=true; + suggestionChange = true; } if (e.keyCode == 9) {//TAB |
