From b828996f1e37d3678ab99eb671083f4ba081353b Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Tue, 8 Jul 2008 12:17:53 +0000 Subject: [PATCH] Monotone-Parent: 1c7442ef9f84ce58c394c1539163f94d731b3545 Monotone-Revision: 716528a4c99649c701a54366e47e2396b887aa1a Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2008-07-08T12:17:53 Monotone-Branch: ca.inverse.sogo --- UI/Contacts/UIxContactView.m | 8 ++++---- UI/WebServerResources/ContactsUI.js | 4 ---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/UI/Contacts/UIxContactView.m b/UI/Contacts/UIxContactView.m index 9b901efff..cc6f525f3 100644 --- a/UI/Contacts/UIxContactView.m +++ b/UI/Contacts/UIxContactView.m @@ -89,8 +89,8 @@ email = [card preferredEMail]; if ([email length] > 0) mailTo = [NSString stringWithFormat: @"" - @"%@", email, email]; + @" onclick=\"return openMailTo('%@ <%@>');\">" + @"%@", email, [card fn], email, email]; else mailTo = nil; @@ -121,8 +121,8 @@ if ([email caseInsensitiveCompare: [card preferredEMail]] != NSOrderedSame) mailTo = [NSString stringWithFormat: @"" - @"%@", email, email]; + @" onclick=\"return openMailTo('%@ <%@>');\">" + @"%@", email, [card fn], email, email]; } [emails release]; diff --git a/UI/WebServerResources/ContactsUI.js b/UI/WebServerResources/ContactsUI.js index 4c8a4171a..6f5147185 100644 --- a/UI/WebServerResources/ContactsUI.js +++ b/UI/WebServerResources/ContactsUI.js @@ -504,10 +504,6 @@ function onConfirmContactSelection(event) { preventDefault(event); } -function onContactMailTo(node) { - return openMailTo(node.innerHTML); -} - function refreshContacts(contactId) { refreshCurrentFolder(); cachedContacts[currentAddressBook + "/" + contactId] = null;