X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=js%2Fairpolytech.js;h=8e628871c2f9006035162e95bd10bcd39ce460e5;hb=c49f721926f5d76a8eef80bd5174d68b5a151442;hp=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391;hpb=a96fefe119b8c91c2f5ae6ad04e11af676e5540b;p=Project_webapp.git diff --git a/js/airpolytech.js b/js/airpolytech.js index e69de29..8e62887 100644 --- a/js/airpolytech.js +++ b/js/airpolytech.js @@ -0,0 +1,11 @@ +function ConfirmCancelFlight() { + var oFormObject = document.forms['reservations']; + if (confirm("Voulez-vous vraiment annuler votre réservation sur le vol " + oFormObject.elements['flight_id'].value + " ?")) { + var input = document.createElement("input"); + input.setAttribute("type", "hidden"); + input.setAttribute("name", "cancel"); + input.setAttribute("value", "Annuler"); + oFormObject.appendChild(input); + oFormObject.submit(); + } +}