mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix js spacing
This commit is contained in:
parent
b59262802c
commit
5547720a8f
@ -371,7 +371,6 @@ data['lang']) }}{% end %}
|
||||
}
|
||||
}
|
||||
function validateForm() {
|
||||
console.log("in validate")
|
||||
let password0 = document.getElementById("password0").value;
|
||||
let password1 = document.getElementById("password1").value;
|
||||
if (password0 === "" && password1 === "" && userId){
|
||||
@ -402,14 +401,11 @@ data['lang']) }}{% end %}
|
||||
$("#user_form").on("submit", async function (e) {
|
||||
const userId = new URLSearchParams(document.location.search).get('id');
|
||||
console.log(userId)
|
||||
console.log("SUBMITTED")
|
||||
e.preventDefault();
|
||||
let password = null;
|
||||
console.log("before validate")
|
||||
if(!userId){
|
||||
password = validateForm();
|
||||
if (!password){
|
||||
console.log("returning")
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user