Monotone-Parent: b7e8268331bf846357e66b902057c9c780079bec
Monotone-Revision: 8b5761d2acde444a5c7b9214e3506a044c23919b Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2007-11-20T14:53:19 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
3a2d13771d
commit
fe606b36ac
|
@ -734,14 +734,11 @@ function configureLinksInMessage() {
|
|||
var anchors = messageDiv.getElementsByTagName('a');
|
||||
for (var i = 0; i < anchors.length; i++)
|
||||
if (anchors[i].href.substring(0,7) == "mailto:") {
|
||||
Event.observe(anchors[i], "click",
|
||||
onEmailAddressClick.bindAsEventListener(anchors[i]));
|
||||
Event.observe(anchors[i], "contextmenu",
|
||||
onEmailAddressClick.bindAsEventListener(anchors[i]));
|
||||
$(anchors[i]).observe("click", onEmailTo);
|
||||
$(anchors[i]).observe("contextmenu", onEmailAddressClick);
|
||||
}
|
||||
else
|
||||
Event.observe(anchors[i], "click",
|
||||
onMessageAnchorClick.bindAsEventListener(anchors[i]));
|
||||
$(anchors[i]).observe("click", onMessageAnchorClick);
|
||||
|
||||
var editDraftButton = $("editDraftButton");
|
||||
if (editDraftButton)
|
||||
|
@ -773,7 +770,6 @@ function onICalendarButtonClick(event) {
|
|||
var link = $("iCalendarAttachment").value;
|
||||
if (link) {
|
||||
var urlstr = link + "/" + this.action;
|
||||
log ("click: " + urlstr);
|
||||
triggerAjaxRequest(urlstr, ICalendarButtonCallback,
|
||||
currentMailbox + "/"
|
||||
+ currentMessages[currentMailbox]);
|
||||
|
@ -944,6 +940,10 @@ function newContactFromEmail(event) {
|
|||
return false; /* stop following the link */
|
||||
}
|
||||
|
||||
function onEmailTo(event) {
|
||||
return openMailTo(this.innerHTML.strip());
|
||||
}
|
||||
|
||||
function newEmailTo(sender) {
|
||||
return openMailTo(document.menuTarget.innerHTML);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue