mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Add 'Edit Bookmarks...' menu item.
This commit is contained in:
parent
d63963762c
commit
43cbc3724d
@ -118,6 +118,21 @@
|
||||
}
|
||||
}
|
||||
|
||||
function BrowserEditBookmarks()
|
||||
{
|
||||
var toolkitCore = XPAppCoresManager.Find("ToolkitCore");
|
||||
if (!toolkitCore) {
|
||||
toolkitCore = new ToolkitCore();
|
||||
if (toolkitCore) {
|
||||
toolkitCore.Init("ToolkitCore");
|
||||
}
|
||||
}
|
||||
if (toolkitCore) {
|
||||
toolkitCore.ShowWindow("resource:/res/rdf/bookmarks.xul",
|
||||
window);
|
||||
}
|
||||
}
|
||||
|
||||
function BrowserPrintPreview()
|
||||
{
|
||||
// Borrowing this method to show how to
|
||||
@ -177,6 +192,9 @@
|
||||
<menuitem name="Forward" onClick="BrowserForward();" />
|
||||
<menuitem name="Home" onClick="BrowserHome();"/>
|
||||
</menu>
|
||||
<menu name="Window">
|
||||
<menuitem name="Edit Bookmarks..." onClick="BrowserEditBookmarks();"/>
|
||||
</menu>
|
||||
|
||||
</menubar>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user