B2G/gecko/browser/base/content/browser-places.js
/**
   * Opens the Places Organizer. 
   * @param   aLeftPaneRoot
   *          The query to select in the organizer window - options
   *          are: History, AllBookmarks, BookmarksMenu, BookmarksToolbar,
   *          UnfiledBookmarks and Tags.
   */
Opens the Places Organizer.
@param   aLeftPaneRoot
The query to select in the organizer window - options
are: History, AllBookmarks, BookmarksMenu, BookmarksToolbar,
UnfiledBookmarks and Tags.
Opens the Places Organizer . @param aLeftPaneRoot The query to select in the organizer window - options are : History AllBookmarks BookmarksMenu BookmarksToolbar UnfiledBookmarks and Tags .
function PCH_showPlacesOrganizer(aLeftPaneRoot) {
    var organizer = Services.wm.getMostRecentWindow("Places:Organizer");
    if (!organizer) {
      openDialog("chrome://browser/content/places/places.xul", 
                 "", "chrome,toolbar=yes,dialog=no,resizable", aLeftPaneRoot);
    }
    else {
      organizer.PlacesOrganizer.selectLeftPaneQuery(aLeftPaneRoot);
      organizer.focus();
    }
  }
function PCH_showPlacesOrganizer ( aLeftPaneRoot ) { var organizer = Services . wm . getMostRecentWindow ( "Places:Organizer" ) ; if ( ! organizer ) { openDialog ( "chrome://browser/content/places/places.xul" , "" , "chrome,toolbar=yes,dialog=no,resizable" , aLeftPaneRoot ) ; } else { organizer . PlacesOrganizer . selectLeftPaneQuery ( aLeftPaneRoot ) ; organizer . focus ( ) ; } }
Opens the Places Organizer.
Opens the Places Organizer .
// No currently open places window, so open one with the specified mode.