mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
r=sspitzer a=mscott. Added notification for delete/cancel failures
This commit is contained in:
parent
0155e2b2d9
commit
391bc9c4ab
@ -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)
|
||||
{
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user