mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +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
fbcad67cc1
commit
5d02099809
@ -657,13 +657,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