From 64e4e828f4e92f4bd4ada26e1c7401c2f0b7718b Mon Sep 17 00:00:00 2001 From: "disttsc%bart.nl" Date: Tue, 30 Jan 2001 05:20:08 +0000 Subject: [PATCH] Fix warnings 'n stuff. bug=60627, patch=mao, r=jag, sr=sspitzer --- mailnews/addrbook/resources/content/abCommon.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mailnews/addrbook/resources/content/abCommon.js b/mailnews/addrbook/resources/content/abCommon.js index 8957c5410e45..a71c22cdb22d 100644 --- a/mailnews/addrbook/resources/content/abCommon.js +++ b/mailnews/addrbook/resources/content/abCommon.js @@ -165,11 +165,13 @@ function AbEditCard() card = card.QueryInterface(Components.interfaces.nsIAbCard); if (card.isMailList) { var dirUri = dirTree.selectedItems[0].getAttribute("id"); - listUri = dirUri + "/MailList" + card.dbRowID; + var listUri = dirUri + "/MailList" + card.dbRowID; goEditListDialog(resultsTree.getAttribute("ref"), listUri); } - else - goEditCardDialog(resultsTree.getAttribute("ref"), card, top.gUpdateCardView); + else { + var updateFunc = ("gUpdateCardView" in top) ? top.gUpdateCardView : null; + goEditCardDialog(resultsTree.getAttribute("ref"), card, updateFunc); + } } }