From c21ab85f07286f338713138c0cff8cafce23dd15 Mon Sep 17 00:00:00 2001 From: "naving%netscape.com" Date: Thu, 21 Sep 2000 00:14:24 +0000 Subject: [PATCH] r=sspitzer a=mscott. Added notification for delete/cancel failures --- .../resources/content/msgMail3PaneWindow.js | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/mailnews/base/resources/content/msgMail3PaneWindow.js b/mailnews/base/resources/content/msgMail3PaneWindow.js index c33da8cd490..6ec2b49b34a 100644 --- a/mailnews/base/resources/content/msgMail3PaneWindow.js +++ b/mailnews/base/resources/content/msgMail3PaneWindow.js @@ -141,10 +141,28 @@ var folderListener = { } } else if (event.GetUnicode() == "DeleteOrMoveMsgCompleted") { HandleDeleteOrMoveMsgCompleted(folder); - } + } + else if (event.GetUnicode() == "DeleteOrMoveMsgFailed") { + HandleDeleteOrMoveMsgFailed(folder); + } + } } +function HandleDeleteOrMoveMsgFailed(folder) +{ + + if(IsCurrentLoadedFolder(folder)) + { + if(gNextMessageAfterDelete) + { + gNextMessageAfterDelete = null; + } + } + +} + + function HandleDeleteOrMoveMsgCompleted(folder) {