From 2a580385655c3b866c85453c7cd89dedd773451f Mon Sep 17 00:00:00 2001 From: "shliang%netscape.com" Date: Thu, 14 Sep 2006 06:07:33 +0000 Subject: [PATCH] supplementary patch for bug 144828 - nav-only installs don't have send link, image, new message. r/sr/a=sspitzer. --- suite/browser/mailNavigatorOverlay.xul | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/suite/browser/mailNavigatorOverlay.xul b/suite/browser/mailNavigatorOverlay.xul index fa6df3e9a537..3a474fc0d64f 100644 --- a/suite/browser/mailNavigatorOverlay.xul +++ b/suite/browser/mailNavigatorOverlay.xul @@ -59,16 +59,16 @@ } } else { - openExternalMailer(url); + openExternalMailer(url, title); } } - function openExternalMailer(url) { + function openExternalMailer(url, title) { var extProtocolSvc = Components.classes["@mozilla.org/uriloader/external-protocol-service;1"] .getService(Components.interfaces.nsIExternalProtocolService); var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); - var mailto = url ? "mailto:?body="+url : "mailto:"; + var mailto = url ? "mailto:?body="+url+"&subject="+escape(title) : "mailto:"; var uri = ioService.newURI(mailto, null, null); extProtocolSvc.loadUrl(uri); @@ -152,7 +152,9 @@ function hideMenuitems() { document.getElementById("menu_newCard").hidden = !gHasIntegratedMailClient; - document.getElementById("menu_sendPage").hidden = !gHasIntegratedMailClient; + var menu_sendPage = document.getElementById("menu_sendPage"); + if (menu_sendPage) + menu_sendPage.hidden = !gHasIntegratedMailClient; } function initOverlay(aEvent) {