diff options
author | Patrick Simianer <p@simianer.de> | 2016-06-14 14:27:45 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2016-06-14 14:27:45 +0200 |
commit | abcae4f39145863b4861588f885991b6dac662aa (patch) | |
tree | 18249899164ecc4ffbe51653b11551c06d304258 /js | |
parent | 9df3b86e6a5b087d441c161c03a6fb3298943864 (diff) | |
parent | 1a51b3797d4c3a846e47b105a5edcb8283726651 (diff) |
Merge branch 'master' of github.com:pks/lfpe
Diffstat (limited to 'js')
-rw-r--r-- | js/interface.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/js/interface.js b/js/interface.js index 4c9685d..b86bf50 100644 --- a/js/interface.js +++ b/js/interface.js @@ -105,7 +105,7 @@ var catch_return = function (e) { if (e.keyCode == 13) { e.preventDefault(); - next(); + //next(); } return false; @@ -115,7 +115,7 @@ var TEXT_handle_keypress = function (e) { if (e.keyCode == 13) { e.preventDefault(); - next(); + //next(); } TEXT_count_kbd += 1; @@ -286,6 +286,7 @@ var next = function () } send_data["key"] = key; + send_data["name"] = $("#name").val(); // send data if (oov_correct.value=="false" && post_edit != "") { @@ -398,7 +399,7 @@ var request_and_process_next = function () if (data["fin"]) { target_textarea.setAttribute("disabled", "disabled"); status.style.display = "none"; - button.innerHTML = "---"; + //button.innerHTML = "-----"; $("#view_summary").toggle() $("#raw_source_textarea").html(""); $("#target_textarea").val(""); @@ -542,11 +543,11 @@ var reset = function () var ui_type = get_ui_type(); if (ui_type == "t") { if (!$("#init").val()) return; - TEXT_count_click = 0; - TEXT_count_kbd = 0; + //TEXT_count_click = 0; + //TEXT_count_kbd = 0; $("#target_textarea").val($("#original_mt").val()); } else if (ui_type == "g") { - DE_init() + DE_init(false) } } |