forked from extern/egroupware
* Addressbook: Inform the user about number of contacts adding to mail compose dialog via Email action
This commit is contained in:
parent
5144627d39
commit
bf62d5578d
@ -790,6 +790,16 @@ app.classes.addressbook = AppJS.extend(
|
|||||||
content.vcard.type.push("text/vcard; charset="+(egw.preference('vcard_charset', 'addressbook') || 'utf-8'));
|
content.vcard.type.push("text/vcard; charset="+(egw.preference('vcard_charset', 'addressbook') || 'utf-8'));
|
||||||
}
|
}
|
||||||
egw.openWithinWindow("mail", "setCompose", content, link, /mail.mail_compose.compose/);
|
egw.openWithinWindow("mail", "setCompose", content, link, /mail.mail_compose.compose/);
|
||||||
|
|
||||||
|
for (var index in content)
|
||||||
|
{
|
||||||
|
if (content[index].file.length > 0)
|
||||||
|
{
|
||||||
|
egw.message(egw.lang('%1 contact(s) added as %2', content[index].file.length, egw.lang(index)));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -63,6 +63,18 @@ egw.extend('open', egw.MODULE_WND_LOCAL, function(_egw, _wnd)
|
|||||||
uri = uri.replace(/</g,'<').replace(/>/g,'>');
|
uri = uri.replace(/</g,'<').replace(/>/g,'>');
|
||||||
|
|
||||||
egw.openWithinWindow ("mail", "setCompose", content, {'preset[mailto]':uri}, /mail_compose.compose/);
|
egw.openWithinWindow ("mail", "setCompose", content, {'preset[mailto]':uri}, /mail_compose.compose/);
|
||||||
|
|
||||||
|
|
||||||
|
for (var index in content)
|
||||||
|
{
|
||||||
|
if (content[index].length > 0)
|
||||||
|
{
|
||||||
|
var cLen = content[index].split(',');
|
||||||
|
egw.message(egw.lang('%1 email(s) added into %2', cLen.length, egw.lang(index)));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user