X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=philter%2Fphilter%2Fphilter.js;h=806062dd6b1bc24b190507601b04dcb2416e0891;hb=4956445bb7da02adee93a10bcc6d038d1f676cb2;hp=420531438e9572d910f43f19ab05b336ff14951c;hpb=86b5093c27b4c24bf77edd715ed30967e89ff08f;p=old-projects.git diff --git a/philter/philter/philter.js b/philter/philter/philter.js index 4205314..806062d 100644 --- a/philter/philter/philter.js +++ b/philter/philter/philter.js @@ -29,8 +29,11 @@ function getElement(obj) { return false; } -function del_onsubmit() { - return window.confirm("Voulez vous réellement supprimer cette adresse mail ?"); +function del_onclick(button) { + if(window.confirm("Voulez vous réellement supprimer cette adresse mail ?")) { + getElement('emailsDel').value = button.name.slice(1); + button.form.submit(); + } } /********** ORDER FORM FUNCTIONS **********/