Commit | Line | Data |
---|---|---|
1 | function ConfirmCancelFlight() { | |
2 | var oFormObject = document.forms['reservations']; | |
3 | if (confirm("Voulez-vous vraiment annuler votre réservation sur le vol " + oFormObject.elements['flight_id'].value + " ?")) { | |
4 | var input = document.createElement("input"); | |
5 | input.setAttribute("type", "hidden"); | |
6 | input.setAttribute("name", "cancel"); | |
7 | input.setAttribute("value", "Annuler"); | |
8 | oFormObject.appendChild(input); | |
9 | oFormObject.submit(); | |
10 | } | |
11 | } |