summaryrefslogtreecommitdiff
path: root/js/interface.js
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2016-05-18 17:16:18 +0200
committerPatrick Simianer <p@simianer.de>2016-05-18 17:16:18 +0200
commitc7ac9913560459ff5a272141373aa076e47de591 (patch)
treeb1ee0c50ee0768f4b9aa101b1c88673776d2824a /js/interface.js
parent6bd7135e6039b0682f49234e42451077413f0bd9 (diff)
js/interface.js: remove obsolete func, add check q
Diffstat (limited to 'js/interface.js')
-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);
-}
-