fix for #3755 - bring up messenger from Tools->Messenger by opening a new

window with the messenger XUL file.
This commit is contained in:
alecf%netscape.com 1999-03-15 23:31:09 +00:00
parent 1b682f9f08
commit ec3c5c1c84

View File

@ -294,6 +294,21 @@
}
}
function OpenMessenger()
{
var toolkitCore = XPAppCoresManager.Find("ToolkitCore");
if (!toolkitCore) {
toolkitCore = new ToolkitCore();
if (toolkitCore) {
toolkitCore.Init("ToolkitCore");
}
}
if (toolkitCore) {
toolkitCore.ShowWindow("resource:/res/samples/mailshell.xul",
window);
}
}
</html:script>
@ -425,7 +440,7 @@
</menu>
<menu name="Tasks">
<menuitem name="Navigator" onclick="BrowserReload();"/>
<menuitem name="Messenger" onclick="BrowserReload();" />
<menuitem name="Messenger" onclick="OpenMessenger();" />
<menuitem name="Chat" onclick="BrowserReload();"/>
<menuitem name="Shopping Cart" onclick="BrowserReload();"/>
<separator />