summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2015-07-22 17:31:08 +0200
committerPatrick Simianer <p@simianer.de>2015-07-22 17:31:08 +0200
commit4bd8892ce05f544faceaa8e99cf84e04e032eef6 (patch)
tree8f51775a33536159c9ef2b4de3f4b0ee92bbde9a
parentbe77327d1a05caf759d54ca4b13cfc05b8539f5b (diff)
confirm fix
-rw-r--r--lfpe.js10
1 files 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();
}