Stop AJAX request before submitting entry

This commit is contained in:
2015-06-05 15:59:51 +02:00
parent fc8b35d9fb
commit c7d1f53594
3 changed files with 11 additions and 2 deletions
+4
View File
@@ -36,6 +36,9 @@ function asend() {
var r = XMLHttpRequestGeneric();
r.onreadystatechange = function()
{
if (r.readyState==4)
in_asend = false;
// after successful completion ...
if (r.readyState==4 && r.status==200) {
// restore original title
@@ -85,6 +88,7 @@ function asend() {
// add jcmd
f.append("jcmd", "Save");
in_asend = true;
r.send(f);
}