зеркало из https://github.com/mozilla/pjs.git
Part of implementation of Reply and Forward. Use new SendMessage command
This commit is contained in:
Родитель
a34b9a797f
Коммит
355f89a34c
|
@ -48,17 +48,6 @@
|
||||||
function startup()
|
function startup()
|
||||||
{
|
{
|
||||||
dump("Compose: StartUp\n");
|
dump("Compose: StartUp\n");
|
||||||
compAppCore = XPAppCoresManager.Find("ComposeAppCore");
|
|
||||||
if (compAppCore==null) {
|
|
||||||
compAppCore = new ComposeAppCore();
|
|
||||||
if (compAppCore != null) {
|
|
||||||
dump("ComposeAppCore was created!\n");
|
|
||||||
compAppCore.Init("ComposeAppCore");
|
|
||||||
compAppCore.SetWindow(window);
|
|
||||||
compAppCore.CompleteCallback("MessageSent();");
|
|
||||||
XPAppCoresManager.Add(compAppCore);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
editAppCore = XPAppCoresManager.Find("EditorAppCore");
|
editAppCore = XPAppCoresManager.Find("EditorAppCore");
|
||||||
dump("Looking up EditorAppCore...\n");
|
dump("Looking up EditorAppCore...\n");
|
||||||
|
@ -78,6 +67,20 @@
|
||||||
else {
|
else {
|
||||||
dump("EditorAppCore has already been created! Why?\n");
|
dump("EditorAppCore has already been created! Why?\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
compAppCore = XPAppCoresManager.Find("ComposeAppCore");
|
||||||
|
if (compAppCore==null) {
|
||||||
|
compAppCore = new ComposeAppCore();
|
||||||
|
if (compAppCore != null) {
|
||||||
|
dump("ComposeAppCore was created!\n");
|
||||||
|
compAppCore.Init("ComposeAppCore");
|
||||||
|
compAppCore.SetWindow(window);
|
||||||
|
compAppCore.SetEditor(editAppCore);
|
||||||
|
compAppCore.CompleteCallback("MessageSent();");
|
||||||
|
XPAppCoresManager.Add(compAppCore);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function EditorGetText()
|
function EditorGetText()
|
||||||
|
@ -95,12 +98,13 @@
|
||||||
{
|
{
|
||||||
dump("SendMessage!\n");
|
dump("SendMessage!\n");
|
||||||
if (compAppCore != null) {
|
if (compAppCore != null) {
|
||||||
compAppCore.SendMessage(document.getElementById('msgTo').value,
|
// compAppCore.SendMessage(document.getElementById('msgTo').value,
|
||||||
document.getElementById('msgCc').value,
|
// document.getElementById('msgCc').value,
|
||||||
document.getElementById('msgBcc').value,
|
// document.getElementById('msgBcc').value,
|
||||||
document.getElementById('msgSubject').value,
|
// document.getElementById('msgSubject').value,
|
||||||
// window.parent.frames[0].document.forms["fbody"].elements["body"].value);
|
// window.parent.frames[0].document.forms["fbody"].elements["body"].value);
|
||||||
EditorGetText());
|
// EditorGetText());
|
||||||
|
compAppCore.SendMessage2();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче