Fixed parsing of email addresses when sending an email to multiple attendees (#1780).

Monotone-Parent: 65528b04d38419185ed64db626bd6ae368bfcd00
Monotone-Revision: c64050fc650935a4d7620ed869e3e3863b178c1e

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2012-04-30T13:09:10
This commit is contained in:
Francis Lachapelle
2012-04-30 13:09:10 +00:00
parent 79599a08b9
commit 1386563e2c
+3 -6
View File
@@ -284,11 +284,9 @@ function openMailTo(senderMailTo) {
sanitizedAddresses.push(sanitizedAddress);
}
var mailto = sanitizedAddresses.join(",");
if (mailto.length > 0)
if (sanitizedAddresses.length > 0)
openMailComposeWindow(ApplicationBaseURL
+ "../Mail/compose?mailto=" + encodeURIComponent(Object.toJSON([mailto]))
+ "../Mail/compose?mailto=" + encodeURIComponent(Object.toJSON(sanitizedAddresses))
+ ((subject.length > 0)?"?subject=" + encodeURIComponent(subject):""));
return false; /* stop following the link */
@@ -619,13 +617,12 @@ function onRowClick(event, target) {
var node = target || getTarget(event);
var rowIndex = null;
if (node.tagName != 'TD' && node.tagName != 'LI')
if (node.tagName != 'TD' && node.tagName != 'LI' && node.tagName != 'TR')
node = this;
if (node.tagName == 'TD') {
node = node.parentNode; // select TR
}
if (node.tagName == 'TR') {
var head = $(node).up('table').down('thead');
rowIndex = node.rowIndex;