From 625cdbab9f1c7d6e4851d270242ee2ee6b895b8d Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Mon, 23 Nov 2015 10:06:19 +0100 Subject: mark --- js/lfpe.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"); -- cgit v1.2.3