From 3020f4f81e2e476d1ae754b1979eb46e8fe11990 Mon Sep 17 00:00:00 2001 From: "ssu%netscape.com" Date: Tue, 1 May 2001 07:23:54 +0000 Subject: [PATCH] fixing bug #76719 - SaveAs->file Template menu items don't work on standalone window. r=varada, sr=sspitzer --- mailnews/base/resources/content/mailWindowOverlay.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mailnews/base/resources/content/mailWindowOverlay.js b/mailnews/base/resources/content/mailWindowOverlay.js index 0e1a2d2b75b..3f2cb8bceb1 100644 --- a/mailnews/base/resources/content/mailWindowOverlay.js +++ b/mailnews/base/resources/content/mailWindowOverlay.js @@ -688,8 +688,8 @@ function MsgUnsubscribe() function MsgSaveAsFile() { - if (gDBView.numSelected == 1) { - SaveAsFile(gDBView.URIForFirstSelectedMessage); + if (GetNumSelectedMessages() == 1) { + SaveAsFile(GetFirstSelectedMessage()); } } @@ -697,8 +697,8 @@ function MsgSaveAsFile() function MsgSaveAsTemplate() { var folder = GetLoadedMsgFolder(); - if (gDBView.numSelected == 1) { - SaveAsTemplate(gDBView.URIForFirstSelectedMessage, folder); + if (GetNumSelectedMessages() == 1) { + SaveAsTemplate(GetFirstSelectedMessage(), folder); } }