summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2015-11-06 18:50:15 +0100
committerPatrick Simianer <p@simianer.de>2015-11-06 18:50:15 +0100
commit7d4e419c0eeef01bfd673e49266eef07e3f714ca (patch)
treeb4a73634167502524c150b4e6e9691071d6eb081 /js
parentbaef6e7af0b84acfe9631b86be4375f8f42ef430 (diff)
fix nomt
Diffstat (limited to 'js')
-rw-r--r--js/lfpe.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/js/lfpe.js b/js/lfpe.js
index 30f7787..e2b0f42 100644
--- a/js/lfpe.js
+++ b/js/lfpe.js
@@ -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;