|
@ -3,13 +3,11 @@ $(function () { |
|
|
function submitForm() { |
|
|
function submitForm() { |
|
|
var base = document.getElementById("base-url").getAttribute("href").slice(0, -1); |
|
|
var base = document.getElementById("base-url").getAttribute("href").slice(0, -1); |
|
|
var email = $("#signup-email").val(); |
|
|
var email = $("#signup-email").val(); |
|
|
var token = $('input[name=csrfmiddlewaretoken]').val(); |
|
|
|
|
|
|
|
|
|
|
|
$("#signup-go").prop("disabled", true); |
|
|
$("#signup-go").prop("disabled", true); |
|
|
$.ajax({ |
|
|
$.ajax({ |
|
|
url: base + "/accounts/signup/", |
|
|
url: base + "/accounts/signup/", |
|
|
type: "post", |
|
|
type: "post", |
|
|
headers: {"X-CSRFToken": token}, |
|
|
|
|
|
data: {"identity": email}, |
|
|
data: {"identity": email}, |
|
|
success: function(data) { |
|
|
success: function(data) { |
|
|
$("#signup-result").html(data).show(); |
|
|
$("#signup-result").html(data).show(); |
|
|