Skip to content

Commit 1575b07

Browse files
author
Sachin Maheshwari
committed
handling through crude way
1 parent 3aa5ef6 commit 1575b07

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

web-assets/js/signup.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

22
var apiServerUrl = "https://api.{{DOMAIN}}/v3/users";
3+
var submit_flag = true;
34
var qs = (function (a) {
45
if (a == "") return {};
56
var b = {};
@@ -49,7 +50,7 @@ $(document).ready(function () {
4950
$("#error").html("Error: " + result.result.content.reason);
5051
$("#error").closest(".message").fadeIn();
5152
}
52-
if (result.result.status === 200 && result.result.content.valid) {
53+
if (result.result.status === 200 && result.result.content.valid && submit_flag) {
5354
$("#error").closest(".message").fadeOut();
5455
$("#error").html("");
5556
let formAction = qs["formAction"];
@@ -67,6 +68,7 @@ $(document).ready(function () {
6768
$("#utmCampaign").val(qs["utmCampaign"]);
6869
$("#returnUrl").val(qs["returnUrl"]);
6970
$("#signup").submit();
71+
submit_flag = false;
7072
setContinueButtonDisabledStatus(true);
7173
}
7274
},

0 commit comments

Comments
 (0)