correcting a bug with the onsubmit handler of the email pool simplify the
[old-projects.git] / philter / philter / philter.js
index 4205314..806062d 100644 (file)
@@ -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 **********/