From 4bd8892ce05f544faceaa8e99cf84e04e032eef6 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Wed, 22 Jul 2015 17:31:08 +0200 Subject: confirm fix --- lfpe.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lfpe.js b/lfpe.js index 72bf078..b98d202 100644 --- a/lfpe.js +++ b/lfpe.js @@ -200,6 +200,12 @@ function Next() // show 'working' message status.style.display = "block"; + // confirm to server + if (document.getElementById("init").value != "") { + var xhr_confirm = CreateCORSRequest('get', base_url+"/confirm"); + xhr_confirm.send(); // FIXME: handle errors + } + // build request var xhr = CreateCORSRequest('get', next_url); if (!xhr) { @@ -293,8 +299,8 @@ function Next() last_post_edit.value = translation; // confirm to server - var xhr_confirm = CreateCORSRequest('get', base_url+"/confirm"); - xhr_confirm.send(); // FIXME: handle errors + //var xhr_confirm = CreateCORSRequest('get', base_url+"/confirm"); + //xhr_confirm.send(); // FIXME: handle errors Timer.start(); } -- cgit v1.2.3