From bafbffcf6db0030faf4bad24919b269cc91c4e47 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 15 Jul 2010 17:10:46 +0000 Subject: [PATCH] Monotone-Parent: 60e6c68ce28bf8053a6fe5aa44b21c2c115e30b1 Monotone-Revision: 77a1a396ead2722d4c170d71c3f90eb39e0a4eee Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-07-15T17:10:46 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 1 + UI/WebServerResources/UIxAppointmentEditor.js | 11 +++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d9d37bd12..229527c5e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -15,6 +15,7 @@ * UI/WebServerResources/UIxAppointmentEditor.js (onComposeToAllAttendees): take the status image DIV into account when detecting the user fullnames. + (onComposeToUndecidedAttendees): same as above. * Tests/Integration/test-davacl.py (DAVCalendarPublicAclTest.testCollectionAccessNormalUser): print diff --git a/UI/WebServerResources/UIxAppointmentEditor.js b/UI/WebServerResources/UIxAppointmentEditor.js index 1dddfe991..fd9e6aacc 100644 --- a/UI/WebServerResources/UIxAppointmentEditor.js +++ b/UI/WebServerResources/UIxAppointmentEditor.js @@ -137,8 +137,15 @@ function onComposeToUndecidedAttendees() var attendees = $$("DIV#attendeesMenu LI.attendee.needs-action"); 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(","));