From: Pierre Habouzit Date: Wed, 3 Sep 2003 14:44:05 +0000 (+0000) Subject: js alert when deleting an email X-Git-Tag: procmail~60 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=01f3d5ec8811864bacfb93a5786fe625c5ebc17e;p=old-projects.git js alert when deleting an email adding an email is a separate
, then [enter] adds an email instead of deleting one --- diff --git a/philter/philter/include/emails.inc.php b/philter/philter/include/emails.inc.php index dee810f..cac401f 100644 --- a/philter/philter/include/emails.inc.php +++ b/philter/philter/include/emails.inc.php @@ -97,7 +97,7 @@ class EmailPool { * @return the string containing the form */ function to_form() { - $res = "\n" + $res = "\n" . "\n"; $pair = true; @@ -114,15 +114,19 @@ class EmailPool { . " \n" . "\n"; + $res .= "
\n
\n"; + $val = 'your email ...'; - $res .= "\n" + + $res .= "
\n" + . "\n" + . "\n" - . "\n"; + . "\n" + . "
\n" . " \n" . "
\n
\n"; - $res .= "\n\n"; - return $res; } diff --git a/philter/philter/philter.js b/philter/philter/philter.js index e574de5..38852d8 100644 --- a/philter/philter/philter.js +++ b/philter/philter/philter.js @@ -29,6 +29,10 @@ function getElement(obj, index) { return false; } +function del_onsubmit() { + return window.confirm("Voulez vous réellement supprimer cette adresse mail ?"); +} + /********** ORDER FORM FUNCTIONS **********/ function order_up() {