B2G/gecko/browser/components/places/content/controller.js
/**
   * Opens the bookmark properties for the selected URI Node.
   */
Opens the bookmark properties for the selected URI Node.
Opens the bookmark properties for the selected URI Node .
function PC_showBookmarkPropertiesForSelection() {
    var node = this._view.selectedNode;
    if (!node)
      return;
    var itemType = PlacesUtils.nodeIsFolder(node) ||
                   PlacesUtils.nodeIsTagQuery(node) ? "folder" : "bookmark";
    var concreteId = PlacesUtils.getConcreteItemId(node);
    var isRootItem = PlacesUtils.isRootItem(concreteId);
    var itemId = node.itemId;
    if (isRootItem || PlacesUtils.nodeIsTagQuery(node)) {
      itemId = concreteId;
    }
    PlacesUIUtils.showBookmarkDialog({ action: "edit"
                                     , type: itemType
                                     , itemId: itemId
                                     , readOnly: isRootItem
                                     , hiddenRows: [ "folderPicker" ]
                                     }, window.top);
  }
function PC_showBookmarkPropertiesForSelection ( ) { var node = this . _view . selectedNode ; if ( ! node ) return ; var itemType = PlacesUtils . nodeIsFolder ( node ) || PlacesUtils . nodeIsTagQuery ( node ) ? "folder" : "bookmark" ; var concreteId = PlacesUtils . getConcreteItemId ( node ) ; var isRootItem = PlacesUtils . isRootItem ( concreteId ) ; var itemId = node . itemId ; if ( isRootItem || PlacesUtils . nodeIsTagQuery ( node ) ) { itemId = concreteId ; } PlacesUIUtils . showBookmarkDialog ( { action : "edit" , type : itemType , itemId : itemId , readOnly : isRootItem , hiddenRows : [ "folderPicker" ] } , window . top ) ; }
Opens the bookmark properties for the selected URI Node.
Opens the bookmark properties for the selected URI Node .
// If this is a root or the Tags query we use the concrete itemId to catch // the correct title for the node.