filter @ from n_fn when trying to add the email via addressbook.email dialog

This commit is contained in:
Klaus Leithoff 2010-12-07 13:57:16 +00:00
parent 8a293796e1
commit 7ffdb2f0f4

View File

@ -401,6 +401,11 @@ class addressbook_ui extends addressbook_bo
function addEmail(email)
{
var to = 'to';
splitter = email.indexOf(' <');
namepart = email.substring(0,splitter);
emailpart = email.substring(splitter);
email = namepart.replace(/@/g,' ')+emailpart;
if (document.getElementById('exec[nm][to][cc]').checked == true)
{
to = 'cc';