mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 22:35:43 +00:00
Add the function NewMessage to popup the compose window.
This commit is contained in:
parent
dc14ae3f64
commit
d5a513a814
@ -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>
|
||||
|
||||
<menubar>
|
||||
|
Loading…
Reference in New Issue
Block a user