From c7ac9913560459ff5a272141373aa076e47de591 Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Wed, 18 May 2016 17:16:18 +0200 Subject: js/interface.js: remove obsolete func, add check q --- js/interface.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'js') 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); -} - -- cgit v1.2.3