summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2016-05-19 13:26:02 +0200
committerPatrick Simianer <p@simianer.de>2016-05-19 13:26:02 +0200
commit41b78720f015abd8604a13a589db44aa65537520 (patch)
treeb1ee0c50ee0768f4b9aa101b1c88673776d2824a
parent8dd7a811559deafbe9262f11be2d592617b030a1 (diff)
parentc7ac9913560459ff5a272141373aa076e47de591 (diff)
Merge branch 'master' of github.com:pks/lfpe
-rw-r--r--js/interface.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/js/interface.js b/js/interface.js
index f009641..c592af3 100644
--- a/js/interface.js
+++ b/js/interface.js
@@ -263,6 +263,13 @@ var next = function ()
not_working();
return;
}
+ if (!DE_check_align()) {
+ if(confirm("Not all phrases are algined, continue?")) {
+ } else {
+ not_working();
+ return;
+ }
+ }
send_data = JSON.parse(data_s);
post_edit = $.trim(send_data["target"].join(" "));
if (DE_target_done.length != DE_target_shapes.length)
@@ -513,7 +520,7 @@ var init_text_editor = function ()
{
document.getElementById("target_textarea").value = "";
document.getElementById("target_textarea").setAttribute("disabled", "disabled");
-
+
TEXT_count_click = 0;
TEXT_count_kbd = 0;
@@ -573,10 +580,3 @@ $().ready(function()
});
-
-function scroll(event) {
- var x = event.clientX;
- var xPercentage = x / screen.width;
- window.scrollTo(xPercentage * width, 0);
-}
-