mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-21 22:22:15 +01:00
add personal part / full name to email when adding contacts from addressbook list to to, cc or bcc of mail compose
This commit is contained in:
parent
6955afccc8
commit
d66a339127
@ -665,13 +665,17 @@ app.classes.addressbook = AppJS.extend(
|
||||
|
||||
var email_business = data.data[action.getManager().getActionById('email_business').checked ? 'email' : ''];
|
||||
var email = data.data[action.getManager().getActionById('email_home').checked ? 'email_home' : ''];
|
||||
// prefix email with full name
|
||||
var personal = data.data.n_fn || '';
|
||||
if (personal.match(/[^a-z0-9. -]/i)) personal = '"'+personal.replace(/"/, '\\"')+'"';
|
||||
|
||||
if(email_business)
|
||||
{
|
||||
emails.push(email_business);
|
||||
emails.push((personal?personal+' <':'')+email_business+(personal?'>':''));
|
||||
}
|
||||
if(email)
|
||||
{
|
||||
emails.push(email);
|
||||
emails.push((personal?personal+' <':'')+email+(personal?'>':''));
|
||||
}
|
||||
}
|
||||
switch (action.id)
|
||||
|
Loading…
Reference in New Issue
Block a user