X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=philter%2Fphilter%2Fphilter.js;h=30b573b4bf761e0f7a8bc4fa6d6be7f5468471ea;hb=3c5f3144e1412aa53951111a1b345f00965dfb17;hp=806062dd6b1bc24b190507601b04dcb2416e0891;hpb=4956445bb7da02adee93a10bcc6d038d1f676cb2;p=old-projects.git diff --git a/philter/philter/philter.js b/philter/philter/philter.js index 806062d..30b573b 100644 --- a/philter/philter/philter.js +++ b/philter/philter/philter.js @@ -29,10 +29,10 @@ function getElement(obj) { return false; } -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(); +function del_onclick(val) { + if(window.confirm(del_q_i18n)) { + getElement('emailsDel').value = val; + document.forms['emails'].submit(); } } @@ -60,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