Correction javascript

This commit is contained in:
Michael RICOIS 2012-01-20 15:40:35 +00:00
commit 6aacad668b
2 changed files with 3 additions and 3 deletions

View File

@ -7,4 +7,4 @@ var pct=0;var prec=0;var checkInterval=10;var url='';function checkKbis(start)
function updateKbis(){$('#progressbar').reportprogress(++pct);if(pct==100){updateKbisInfo(message);pct=0;}
if(Math.floor(pct/checkInterval)!=prec||pct==1){prec=Math.floor(pct/checkInterval);checkKbis(false);}}
function updateKbisInfo(html){$('#result').html(html);clearInterval(holdTheInterval);}
$(document).ready(function(){$('input[type=checkbox][name=sendmail]').live('click',function(){if($(this).prop('checked')==true){$('#formMail').css('display','block');}else{$('#formMail').css('display','none');}});$('form[name=mailkbis]').submit(function(){var eMail=$('input[name=mail]').val();if(!checkEmail(eMail)){alert('Veuillez saisir une adresse email.');return false;}else{return true;}});});
$(document).ready(function(){$('input[type=checkbox][name=sendmail]').live('click',function(){if($(this).prop('checked')==true){$('#formMail').css('display','block');}else{$('#formMail').css('display','none');}});});

View File

@ -46,11 +46,11 @@ $(document).ready(function(){
}
});
$('form[name=mailkbis]').submit(function(){
/*$('form[name=mailkbis]').submit(function(){
var eMail = $('input[name=mail]').val();
if(!checkEmail(eMail)){
alert('Veuillez saisir une adresse email.');
return false;
} else { return true; }
});
});*/
});