See ChangeLog

Monotone-Parent: 5a6d160e6f9616edb725a40e08f24f0f0bf539b0
Monotone-Revision: c9c54e20cc8e010c29ef8e5fa1cbd039c35e5344

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2012-07-20T18:48:28
This commit is contained in:
Francis Lachapelle
2012-07-20 18:48:28 +00:00
parent 5c618e5638
commit 8a1781ea22
2 changed files with 8 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
2012-07-20 Francis Lachapelle <flachapelle@inverse.ca>
* UI/WebServerResources/MailerUI.js (onEmailTo): append the email
address from the href attribute if it doesn't appear in the link content.
* UI/MailPartViewers/UIxMailPartHTMLViewer.m
(-startElement:namespace:rawName:attributes:): don't skip "mailto:"
href.

View File

@@ -1790,7 +1790,11 @@ function newContactFromEmail(event) {
}
function onEmailTo(event) {
openMailTo(this.innerHTML.strip());
var s = this.innerHTML.strip();
if (!/@/.test(s)) {
s += ' <' + this.href.substr(7) + '>';
}
openMailTo(s);
Event.stop(event);
return false;
}