gestion des demandes d'évolution pour le centre kalachakra non géré dans les module booking et opendons
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

52 lines
871 B

odoo.define('kalachakra.main', function (require) {
$(document).ready(function() {
});
$( "#btn_payment_choice" ).click(function() {
//validation de l'adresse mail
if (ValidateEmail($("#email").val()))
{
//vérification montant
if ($("#amount_id").val()==0)
{
alert('please enter an amount')
}
else
{
$( "#form" ).submit();
}
}
else
{
alert("You have entered an invalid email address!")
}
});
function ValidateEmail(mail)
{
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(mail))
{
return (true)
}
return (false)
}
});