X-Git-Url: https://git.piment-noir.org/?p=Project_webapp.git;a=blobdiff_plain;f=js%2Fairpolytech.js;h=0f5a17a3c24710db6bd75922578455309423ef0a;hp=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391;hb=77c2d82c70ae6b1629d372b3c4642cdc2a994698;hpb=22f1dc6402dbc9a9c5d2ed2f17ef54044d35ec2a diff --git a/js/airpolytech.js b/js/airpolytech.js index e69de29..0f5a17a 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(); + } +}