thunderbird changes for 206408 hook up cancel for imap fcc, r=sspitzer, sr=mscott

This commit is contained in:
bienvenu%nventure.com 2003-11-28 19:02:07 +00:00
Родитель aef489f3a3
Коммит 60464e8e1f
1 изменённых файлов: 8 добавлений и 6 удалений

Просмотреть файл

@ -53,7 +53,7 @@ var sNameProperty = null;
in the other js file.
*/
var msgWindow = Components.classes["@mozilla.org/messenger/msgwindow;1"].createInstance();
msgWindow = msgWindow.QueryInterface(Components.interfaces.nsIMsgWindow);
/**
* Global variables, need to be re-initialized every time mostly because we need to release them when the window close
@ -1709,7 +1709,9 @@ function GenericSendMessage( msgType )
progress.registerListener(progressListener);
gSendOrSaveOperationInProgress = true;
}
gMsgCompose.SendMsg(msgType, getCurrentIdentity(), progress);
msgWindow.SetDOMWindow(window);
gMsgCompose.SendMsg(msgType, getCurrentIdentity(), msgWindow, progress);
}
catch (ex) {
dump("failed to SendMsg: " + ex + "\n");
@ -1775,9 +1777,9 @@ function Save()
function SaveAsFile(saveAs)
{
dump("SaveAsFile from XUL\n");
var subject = document.getElementById('msgSubject').value;
GetCurrentEditor().setDocumentTitle(subject);
dump("SaveAsFile from XUL\n");
var subject = document.getElementById('msgSubject').value;
GetCurrentEditor().setDocumentTitle(subject);
if (gMsgCompose.bodyConvertible() == nsIMsgCompConvertible.Plain)
SaveDocument(saveAs, false, "text/plain");
@ -2364,7 +2366,7 @@ function FocusOnFirstAttachment()
function AttachmentElementHasItems()
{
var element = document.getElementById("bucketList");
var element = document.getElementById("attachmentBucket");
return element ? element.childNodes.length : 0;
}