зеркало из https://github.com/mozilla/pjs.git
r=sspitzer a=mscott. Added notification for delete/cancel failures
This commit is contained in:
Родитель
fa56691f9c
Коммит
c21ab85f07
|
@ -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)
|
||||
{
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче