Commit 028edf7b322d38cdae4b32b780428fac641ee963

Authored by Jean Wasilewski
1 parent 6c4f09a4

jQuery style

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
connect.php
... ... @@ -34,7 +34,7 @@ $('#afficherMotDePasse')[0].addEventListener('mouseup', function()
34 34 {
35 35 $('#entrer_mot_de_passe_3')[0].type = 'password';
36 36 });
37   -$('#connectForm')[0].addEventListener('submit', function()
  37 +$('#connectForm')[0].submit(function(event)
38 38 {
39 39 $("#validCreds")[0].disabled=true;
40 40 var checkPath = "checkCreds.php?user=";
... ... @@ -46,5 +46,6 @@ $('#connectForm')[0].addEventListener('submit', function()
46 46 else
47 47 alert("Mauvais identifiants");
48 48 $("#validCreds")[0].disabled=false;
  49 + event.preventDefault();
49 50 });
50 51 </script>
... ...