X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=philter%2Fphilter%2Fphilter.js;h=30b573b4bf761e0f7a8bc4fa6d6be7f5468471ea;hb=3c5f3144e1412aa53951111a1b345f00965dfb17;hp=f3686bd5326b34f22a0f9e2f2780a831293679f1;hpb=311c293a9e24da357b74e7993be223d18057e7ba;p=old-projects.git diff --git a/philter/philter/philter.js b/philter/philter/philter.js index f3686bd..30b573b 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(val) { + if(window.confirm(del_q_i18n)) { + getElement('emailsDel').value = val; + document.forms['emails'].submit(); + } } /********** ORDER FORM FUNCTIONS **********/ @@ -57,7 +60,7 @@ function order_up() { function order_dn() { form = document.forms['order']; - select = getElement['orderSelect']; + select = getElement('orderSelect'); if(select.selectedIndex>0 && select.selectedIndex