Add the function NewMessage to popup the compose window.
git-svn-id: svn://10.0.0.236/trunk@22774 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user