X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=philter%2Fphilter%2Fphilter.js;h=30b573b4bf761e0f7a8bc4fa6d6be7f5468471ea;hb=3c5f3144e1412aa53951111a1b345f00965dfb17;hp=420531438e9572d910f43f19ab05b336ff14951c;hpb=86b5093c27b4c24bf77edd715ed30967e89ff08f;p=old-projects.git diff --git a/philter/philter/philter.js b/philter/philter/philter.js index 4205314..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