diff options
author | Patrick Simianer <p@simianer.de> | 2015-11-06 18:50:15 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2015-11-06 18:50:15 +0100 |
commit | 7d4e419c0eeef01bfd673e49266eef07e3f714ca (patch) | |
tree | b4a73634167502524c150b4e6e9691071d6eb081 | |
parent | baef6e7af0b84acfe9631b86be4375f8f42ef430 (diff) |
fix nomt
-rw-r--r-- | js/lfpe.js | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -311,7 +311,11 @@ function Next() // update interface oov_correct.value = false; status.style.display = "none"; - target_textarea.value = translation; + if (!translation) { + target_textarea.value = ""; + } else { + target_textarea.value = translation; + } //raw_source_textarea.value = raw_source; $("#raw_source_textarea").html(raw_source); button.innerHTML = "Next"; @@ -322,7 +326,8 @@ function Next() if (id > 0) { removeClass(document.getElementById("seg_"+(id-1)), "bold"); } - target_textarea.rows = Math.round(translation.length/80+0.5); + if (translation) + target_textarea.rows = Math.round(translation.length/80+0.5); //raw_source_textarea.rows = Math.round(raw_source.length/80+0.5); target_textarea.focus(); target_textarea.selectionStart = 0; |