зеркало из https://github.com/mozilla/pjs.git
Still writing globalOverlay. Not yet part of build.
This commit is contained in:
Родитель
b6c73a4dc8
Коммит
84545da0d7
|
@ -1 +1,34 @@
|
|||
// more to come soon
|
||||
function NavigatorWindow()
|
||||
{
|
||||
var toolkitCore = XPAppCoresManager.Find("ToolkitCore");
|
||||
if (!toolkitCore)
|
||||
{
|
||||
toolkitCore = new ToolkitCore();
|
||||
if (toolkitCore)
|
||||
{
|
||||
toolkitCore.Init("ToolkitCore");
|
||||
}
|
||||
}
|
||||
|
||||
if (toolkitCore)
|
||||
{
|
||||
toolkitCore.ShowWindow("chrome://navigator/content/",
|
||||
window);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function MessengerWindow()
|
||||
{
|
||||
window.open("chrome://messenger/content/", "messenger", "chrome");
|
||||
}
|
||||
|
||||
|
||||
function AddressBook()
|
||||
{
|
||||
var wind = window.open("chrome://addressbook/content/addressbook.xul",
|
||||
"addressbook", "chrome");
|
||||
return wind;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<!ENTITY tasksMenu.label "Tasks">
|
||||
<!ENTITY navigatorCmd.label "Navigator">
|
||||
<!ENTITY messengerCmd.label ".Messenger">
|
||||
<!ENTITY addressBookCmd.label ".Address Book">
|
||||
<!ENTITY addressBookCmd.label "Address Book">
|
||||
<!ENTITY bookmarkMenu.label ".Bookmarks">
|
||||
<!ENTITY addBookmarkCmd.label ".Add Bookmark">
|
||||
<!ENTITY fileBookmarkCmd.label ".File Bookmark">
|
||||
|
@ -40,6 +40,8 @@
|
|||
xmlns:html="http://www.w3.org/TR/REC-html40"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<html:script language="JavaScript" src="chrome://global/content/globalOverlay.js"/>
|
||||
|
||||
<menu id="tasksMenu" name="&tasksMenu.label;">
|
||||
<menuitem name="&navigatorCmd.label;" onclick="NavigatorWindow()"/>
|
||||
<menuitem name="&messengerCmd.label;" onclick="MessengerWindow()"/>
|
||||
|
|
Загрузка…
Ссылка в новой задаче