From 796938ba6eddd886ed02c0b4597e88320b6438c9 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 7 Feb 2008 23:11:50 +0000 Subject: [PATCH] Monotone-Parent: 9afbcfbc31ab96049b1a603edff5f9ed02a4a00d Monotone-Revision: d223c93a6328f7801ecce330c478fbaff42a760a Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-02-07T23:11:50 Monotone-Branch: ca.inverse.sogo --- UI/WebServerResources/ContactsUI.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/UI/WebServerResources/ContactsUI.js b/UI/WebServerResources/ContactsUI.js index b9e8e95d7..e6196b0b5 100644 --- a/UI/WebServerResources/ContactsUI.js +++ b/UI/WebServerResources/ContactsUI.js @@ -311,13 +311,6 @@ function onMenuEditContact(event) { function onMenuWriteToContact(event) { var contactId = document.menuTarget.getAttribute('id'); - var contactRow = $(contactId); - var emailCell = contactRow.down('td', 1); - - if (!emailCell.firstChild) { // .nodeValue is the contact email address - window.alert(labels["The selected contact has no email address."]); - return false; - } openMailComposeWindow(ApplicationBaseURL + currentContactFolder + "/" + contactId + "/write"); @@ -327,8 +320,7 @@ function onMenuWriteToContact(event) { } function onMenuAIMContact(event) { - var contactId = document.menuTarget.getAttribute('id'); - var contactRow = $(contactId); + var contactRow = $(document.menuTarget.getAttribute('id')); var aimCell = contactRow.down('td', 2); window.location.href = "aim:goim?ScreenName=" + aimCell.firstChild.nodeValue;