function addTicket(userData, confirmTicket) {
    if (confirmTicket.confirm === "true") {
        $.ajax({
            method: "POST",
            url: "./api/tickets",
            contentType: "application/json",
            data: JSON.stringify({ name: userData.name, email: userData.email, description: userData.description, datetime: userData.data })
        })
    };
}
//Validates if the ticket is ready to be created and, if so, send it to the DB
Validates if the ticket is ready to be created and, if so, send it to the DB
Validates if the ticket is ready to be created and if so send it to the DB
function addTicket(userData, confirmTicket) {
    if (confirmTicket.confirm === "true") {
        $.ajax({
            method: "POST",
            url: "./api/tickets",
            contentType: "application/json",
            data: JSON.stringify({ name: userData.name, email: userData.email, description: userData.description, datetime: userData.data })
        })
    };
}
function addTicket ( userData , confirmTicket ) { if ( confirmTicket . confirm === "true" ) { $ . ajax ( { method : "POST" , url : "./api/tickets" , contentType : "application/json" , data : JSON . stringify ( { name : userData . name , email : userData . email , description : userData . description , datetime : userData . data } ) } ) } ; }
Validates if the ticket is ready to be created and, if so, send it to the DB
Validates if the ticket is ready to be created and if so send it to the DB