summaryrefslogtreecommitdiff
path: root/lfpe.js
diff options
context:
space:
mode:
Diffstat (limited to 'lfpe.js')
-rw-r--r--lfpe.js23
1 files changed, 21 insertions, 2 deletions
diff --git a/lfpe.js b/lfpe.js
index b98d202..10c3093 100644
--- a/lfpe.js
+++ b/lfpe.js
@@ -79,6 +79,10 @@ function catch_return(e)
return false;
}
+/*
+ * check oov correction input
+ *
+ */
function check_oov_correction()
{
var need = trim(document.getElementById("raw_source_textarea").value).split(";").length;
@@ -131,6 +135,21 @@ function removeClass(node, className)
}
/*
+ *
+ *
+ */
+function toggleDisplay(node)
+{
+ if (node.style.display=='none') {
+ node.style.display = 'block';
+ } else {
+ node.style.display = 'none';
+ }
+
+ return false;
+}
+
+/*
* trim string
*
*/
@@ -225,8 +244,8 @@ function Next()
}
var x = xhr.responseText.split("\t");
if (x == "fi") { // done -> hide/disable functional elements
- raw_source_textarea.style.display = "none";
- target_textarea.style.display = "none";
+ raw_source_textarea.setAttribute("disabled", "disabled");
+ target_textarea.setAttribute("disabled", "disabled");
status.style.display = "none";
button.innerHTML = "Session finished, thank you!";
button.setAttribute("disabled", "disabled");