зеркало из https://github.com/mozilla/pjs.git
Add the function NewMessage to popup the compose window.
This commit is contained in:
Родитель
3f58f95ebd
Коммит
41f19c23e2
|
@ -98,6 +98,17 @@ function OpenURL(url)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function NewMessage()
|
||||||
|
{
|
||||||
|
dump("\n\nnewMsg from XUL\n\n\n");
|
||||||
|
var appCore = new ComposeAppCore();
|
||||||
|
if (appCore != null) {
|
||||||
|
dump("Initializing ComposeAppCore and creating a new Message\n");
|
||||||
|
appCore.Init("ComposeAppCore");
|
||||||
|
appCore.NewMessage("resource:/res/samples/compose.xul");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
</html:script>
|
</html:script>
|
||||||
|
|
||||||
<menubar>
|
<menubar>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче