mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 23:05:42 +00:00
Bug 408938 - Include bookmarks toolbar folder in bookmarks menu. r=dietrich.
This commit is contained in:
parent
3fe547d673
commit
d4893bc197
@ -387,7 +387,7 @@
|
||||
ondragdrop="nsDragAndDrop.drop(event, BookmarksMenuDropHandler);"
|
||||
ondragover="nsDragAndDrop.dragOver(event, BookmarksMenuDropHandler);">
|
||||
<menupopup id="bookmarksMenuPopup"
|
||||
type="places" asyncinit="true"
|
||||
type="places"
|
||||
place="place:folder=2&expandQueries=1"
|
||||
context="placesContext"
|
||||
openInTabs="children"
|
||||
@ -411,12 +411,23 @@
|
||||
</menu>
|
||||
<menuitem label="&addCurPagesCmd.label;"
|
||||
command="Browser:BookmarkAllTabs" key="bookmarkAllTabsKb"/>
|
||||
<menuseparator id="organizeBookmarksSeparator"/>
|
||||
<menuitem label="&showAllBookmarksCmd2.label;"
|
||||
command="Browser:ShowAllBookmarks" key="manBookmarkKb"/>
|
||||
<menu id="bookmarksToolbarFolderMenu"
|
||||
class="menu-iconic bookmark-item"
|
||||
container="true">
|
||||
<menupopup id="bookmarksToolbarFolderPopup"
|
||||
type="places"
|
||||
context="placesContext"
|
||||
oncommand="BookmarksEventHandler.onCommand(event);"
|
||||
onclick="BookmarksEventHandler.onClick(event);"
|
||||
onpopupshowing="BookmarksEventHandler.onPopupShowing(event);"/>
|
||||
</menu>
|
||||
<menuseparator builder="start"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
|
||||
|
||||
<menu id="tools-menu" label="&toolsMenu.label;" accesskey="&toolsMenu.accesskey;">
|
||||
<menupopup id="menu_ToolsPopup">
|
||||
<menuitem label="&search.label;" accesskey="&search.accesskey;"
|
||||
|
@ -260,15 +260,17 @@ function BookmarkThisTab()
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize the bookmarks toolbar
|
||||
* Initialize the bookmarks toolbar and the menuitem for it.
|
||||
*/
|
||||
function initBookmarksToolbar() {
|
||||
var place = PlacesUtils.getQueryStringForFolder(PlacesUtils.bookmarks.toolbarFolder);
|
||||
var bt = document.getElementById("bookmarksBarContent");
|
||||
if (!bt)
|
||||
return;
|
||||
if (bt)
|
||||
bt.place = place;
|
||||
|
||||
bt.place =
|
||||
PlacesUtils.getQueryStringForFolder(PlacesUtils.bookmarks.toolbarFolder);
|
||||
document.getElementById("bookmarksToolbarFolderPopup").place = place;
|
||||
document.getElementById("bookmarksToolbarFolderMenu").label =
|
||||
PlacesUtils.bookmarks.getItemTitle(PlacesUtils.bookmarks.toolbarFolder);
|
||||
}
|
||||
|
||||
const gSessionHistoryObserver = {
|
||||
|
Loading…
Reference in New Issue
Block a user