diff --git a/app/static/scripts/function.js b/app/static/scripts/function.js index d68c816935af636a14dfd71f86b55b4d7982037b..45f61e86c998a28cb5145ebb11107162680a68ef 100644 --- a/app/static/scripts/function.js +++ b/app/static/scripts/function.js @@ -1,6 +1,8 @@ -function check() { +var check_counter =0; +function check() { var submitButton = document.getElementById("submit"); - submitButton.disabled = false; + if ((check_counter+=1)%2) submitButton.disabled = false; + else submitButton.disabled = true; }; function displayloading1() { @@ -17,7 +19,8 @@ function request_account() { fullname: document.getElementById("fullname").value, email: document.getElementById("email").value, reason: document.getElementById("reason").value, - username: document.getElementById("username").value + username: document.getElementById("username").value, + aup: 1 }) }