correcting a bug with the onsubmit handler of the email pool simplify the
[old-projects.git] / philter / philter / philter.js
index f3686bd..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 **********/
@@ -120,7 +123,6 @@ function createActionSelect(data,base) {
 
 function createActionRow(Node,data) {
     var div = document.createElement("div");
-    div.className = 'row';
     div.name = 'rule[actions]['+actions_i+']';
     actions_i++;
     Node.appendChild(div);
@@ -164,7 +166,6 @@ function createMatchSelect(data,base) {
 
 function createMatchRow(Node,data) {
     var div = document.createElement("div");
-    div.className = 'row';
     div.name = 'rule[matches]['+actions_i+']';
     actions_i++;
     Node.appendChild(div);