diff --git a/wol/www/index.php b/wol/www/index.php index d046d361824fd991ebbc8f633f87f907fc4e8107..8f03bfce323766bc0845f6c17ae309efba6add98 100644 --- a/wol/www/index.php +++ b/wol/www/index.php @@ -143,20 +143,10 @@ if(!isset($action)){ <input type="hidden" name="mac" value="<?php echo $entry[1]; ?>"> <input type="submit" value="Démarrer" title="Démarrer la machine"> </form> - <script> - function validate(name) { - if(!confirm("Êtes-vous sûr de vouloir redémarrer la machine"+name) { - return false; - } - else { - return true; - } - } - </script> - <form action="index.php" method="post"> + <form action="index.php" method="post" onsubmit='return confirm("Êtes-vous sûr de vouloir redémarrer la machine <? echo $entry[2]; ?>");'> <input type="hidden" name="action" value="reboot"> <input type="hidden" name="mac" value="<?php echo $entry[1]; ?>"> - <input type="submit" value="Redémarrer" title="redémarrer la machine" onsubmit="return validate(<? echo $entry[2]; ?>);" > + <input type="submit" value="Redémarrer" title="redémarrer la machine"> </form> <form action="index.php" method="post"> <input type="hidden" name="action" value="upgrade">