See ChangeLog

Monotone-Parent: be2628456056b13146b29cb36efc2deaf49d537f
Monotone-Revision: e58e01ba23d307338c0721fcb30c8c45fb1a15f4

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2011-04-14T21:26:35
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2011-04-14 21:26:35 +00:00
parent 71597fbdcf
commit 419de8d134
2 changed files with 8 additions and 8 deletions
+3 -8
View File
@@ -2,7 +2,7 @@
/*
Copyright (C) 2005 SKYRIX Software AG
Copyright (C) 2006-2010 Inverse
Copyright (C) 2006-2011 Inverse
This file is part of OpenGroupware.org.
@@ -22,11 +22,6 @@
02111-1307, USA.
*/
var uixEmailUsr =
"([a-zA-Z0-9][a-zA-Z0-9_.-]*|\"([^\\\\\x80-\xff\015\012\"]|\\\\[^\x80-\xff])+\")";
var uixEmailDomain =
"([a-zA-Z0-9][a-zA-Z0-9._-]*\\.)*[a-zA-Z0-9][a-zA-Z0-9._-]*\\.[a-zA-Z]{2,6}";
var uixEmailRegex = new RegExp("^"+uixEmailUsr+"\@"+uixEmailDomain+"$");
var dateRegex = /^[0-9]{4}-[0-9]{2}-[0-9]{2}$/;
var displayNameChanged = false;
@@ -88,14 +83,14 @@ function validateContactEditor() {
var e = $('workMail');
if (e.value.length > 0
&& !uixEmailRegex.test(e.value)) {
&& !emailRE.test(e.value)) {
alert(_("invalidemailwarn"));
rc = false;
}
e = $('homeMail');
if (e.value.length > 0
&& !uixEmailRegex.test(e.value)) {
&& !emailRE.test(e.value)) {
alert(_("invalidemailwarn"));
rc = false;
}