From 01f3d5ec8811864bacfb93a5786fe625c5ebc17e Mon Sep 17 00:00:00 2001 From: Pierre Habouzit Date: Wed, 3 Sep 2003 14:44:05 +0000 Subject: [PATCH] js alert when deleting an email adding an email is a separate
, then [enter] adds an email instead of deleting one --- philter/philter/include/emails.inc.php | 14 +++++++++----- philter/philter/philter.js | 4 ++++ 2 files changed, 13 insertions(+), 5 deletions(-) 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() { -- 2.1.4