diff options
| author | Alon Levy <alon@pobox.com> | 2014-09-21 19:15:57 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-09-21 19:15:57 +0300 |
| commit | d63c15c092cb74499ba25b884a12dc00bf80aaf6 (patch) | |
| tree | d4accd34c8c0c3c09d5b7403c8e3b1a6987fddae /scripts/textanalysis-ui.js | |
| parent | 810f2951b50357bcb6b854da312027d64fcddb25 (diff) | |
textanalysis-ui: Fixes #42 - remove helper text when sentence is edited then deleted
Diffstat (limited to 'scripts/textanalysis-ui.js')
| -rw-r--r-- | scripts/textanalysis-ui.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/textanalysis-ui.js b/scripts/textanalysis-ui.js index 2fab6c80..f0dc6aa2 100644 --- a/scripts/textanalysis-ui.js +++ b/scripts/textanalysis-ui.js @@ -35,7 +35,7 @@ function analyzeSentence(sentence, finalize) //UPDATE GRAPH ONCE graph.update(); - if (finalize) { + if (finalize || sentence.length == 0) { $('.typeselection').css('top', -300); $('.typeselection').css('left', 0); } |
