diff options
Diffstat (limited to 'lfpe.js')
-rw-r--r-- | lfpe.js | 23 |
1 files changed, 21 insertions, 2 deletions
@@ -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"); |