diff options
| author | polo <ordipolo@gmx.fr> | 2024-05-03 13:17:43 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2024-05-03 13:17:43 +0200 |
| commit | b2d42f9d5d53aebdbac6446ce70f9840d8a75074 (patch) | |
| tree | 9de82e8fb3cb5281410b2e35580cb7bde327b443 | |
| parent | c7d92da2c73ecddc3e951fc1c43dad4465dfb960 (diff) | |
| download | melaine-b2d42f9d5d53aebdbac6446ce70f9840d8a75074.tar.gz melaine-b2d42f9d5d53aebdbac6446ce70f9840d8a75074.tar.bz2 melaine-b2d42f9d5d53aebdbac6446ce70f9840d8a75074.zip | |
javascript correction erreur "implied eval"
| -rw-r--r-- | public/main.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/public/main.js b/public/main.js index 4080832..19a09bb 100644 --- a/public/main.js +++ b/public/main.js | |||
| @@ -3,8 +3,9 @@ | |||
| 3 | function versMenu() | 3 | function versMenu() |
| 4 | { | 4 | { |
| 5 | // ergonomique | 5 | // ergonomique |
| 6 | window.setTimeout("location=('index.php?page=menu');", 10000); | 6 | window.setTimeout(function(){ |
| 7 | //window.setTimeout(function(){location.href="index.php?page=menu"}, 10000); | 7 | location.href = "index.php?page=menu"; |
| 8 | }, 10000); | ||
| 8 | } | 9 | } |
| 9 | 10 | ||
| 10 | function deconnexionAutomatique() | 11 | function deconnexionAutomatique() |
| @@ -85,5 +86,7 @@ function copierDansPressePapier(chaine) | |||
| 85 | function nouveauMotdepasse(page) | 86 | function nouveauMotdepasse(page) |
| 86 | { | 87 | { |
| 87 | alert('Le mot de passe a été modifié.'); | 88 | alert('Le mot de passe a été modifié.'); |
| 88 | window.setTimeout(location=('index.php?page=' + page + '&message=nouveau_mdp'), 0); | 89 | window.setTimeout(function(){ |
| 90 | location.href = "index.php?page=" + page + "&message=nouveau_mdp"; | ||
| 91 | }, 0); | ||
| 89 | } | 92 | } |
