summaryrefslogtreecommitdiff
path: root/js/lfpe.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lfpe.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;