Monotone-Parent: d486d5e829cf0bc377649b3e2d2ecfcc08afb8e8

Monotone-Revision: eb91760e130971e6a1b43251bf762b23a408ab34

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-07-15T16:40:26
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2010-07-15 16:40:26 +00:00
parent 97f72faf38
commit 1211ec78a1
2 changed files with 13 additions and 2 deletions
@@ -115,8 +115,15 @@ function onComposeToAllAttendees()
var attendees = $$("DIV#attendeesMenu LI.attendee");
var addresses = new Array();
attendees.each(function(item) {
var address = item.firstChild.nodeValue.trim() + " <" + item.readAttribute("email") + ">";
addresses.push(address);
var textChild = null;
var childNodes = item.childNodes;
for (var i = 0; !textChild && i < childNodes.length; i++) {
if (childNodes[i].nodeType == 3) {
textChild = childNodes[i];
var address = textChild.nodeValue.trim() + " <" + item.readAttribute("email") + ">";
addresses.push(address);
}
}
});
if (window.opener)
window.opener.openMailTo(addresses.join(","));