Commit 389cfaef authored by Krish Moodbidri's avatar Krish Moodbidri
Browse files

1. improved submit button toggle case wrt checkbox value

2. send checkbox value instead of a hardcoded value
parent 16b3fc1c
Pipeline #5339 failed with stage
var check_counter =0;
function check() {
var submitButton = document.getElementById("submit");
if ((check_counter+=1)%2) submitButton.disabled = false;
else submitButton.disabled = true;
let ckbox = document.getElementById('agree');
submitButton.disabled = !ckbox.checked;
};
function displayloading1() {
......@@ -20,7 +19,7 @@ function request_account() {
email: document.getElementById("email").value,
reason: document.getElementById("reason").value,
username: document.getElementById("username").value,
aup: 1
aup: document.getElementById("agree").checked
})
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment