summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2015-11-23 10:06:19 +0100
committerPatrick Simianer <p@simianer.de>2015-11-23 10:06:19 +0100
commit625cdbab9f1c7d6e4851d270242ee2ee6b895b8d (patch)
treedcc0d865cfd2fd2fe843ffd84e70277a197cbf25 /js
parent3c20ae7fcba64ec27c8a75651bf8b82bba1c8300 (diff)
mark
Diffstat (limited to 'js')
-rw-r--r--js/lfpe.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/lfpe.js b/js/lfpe.js
index edfae9b..fda5c5a 100644
--- a/js/lfpe.js
+++ b/js/lfpe.js
@@ -168,6 +168,8 @@ function Next()
if (ui_type == 'g') {
send_data = JSON.parse(DE_extract_data());
post_edit = trim(send_data["target"].join(" "));
+ if (DE_target_done.length != DE_target_shapes.length)
+ post_edit = "";
send_data["post_edit"] = post_edit;
} else {
post_edit = trim(target_textarea.value);
@@ -215,7 +217,7 @@ function Next()
// ???
} else {
if (source.value != "") {
- alert("Please provide a post-edit.");
+ alert("Please provide a post-edit and mark all phrases as finished.");
target_textarea.removeAttribute("disabled", "disabled");
pause_button.removeAttribute("disabled", "disabled");
button.removeAttribute("disabled", "disabled");