content/join: get correct value from agreetoterms checkbox
This commit is contained in:
parent
4daeb630c0
commit
a39333942d
1 changed files with 2 additions and 2 deletions
|
@ -26,10 +26,10 @@
|
|||
var baseurl = 'https://lab.ilot.io/api/v4/projects/99/issues?&labels=Request';
|
||||
var emptyfield = document.getElementById("emptyfield").value;
|
||||
var mathspamtrap = document.getElementById("math-spam-trap").value;
|
||||
var agreetoterms = document.getElementById("agree-to-terms").value;
|
||||
var agreetoterms = document.getElementById("agree-to-terms").checked;
|
||||
var email = document.getElementById("email").value;
|
||||
|
||||
if(agreetoterms != "agree-to-terms") {
|
||||
if(!agreetoterms) {
|
||||
alert("Registration requires agreement of Code of Conduct");
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue