B2G/gecko/browser/components/places/content/places.js
/**
   * Updates the display with the title of the current collection.
   * @param   aTitle
   *          The title of the current collection.
   */
Updates the display with the title of the current collection.
@param   aTitle
The title of the current collection.
Updates the display with the title of the current collection . @param aTitle The title of the current collection .
function PSB_updateCollectionTitle(aTitle) {
    let title = "";
    if (aTitle) {
      title = PlacesUIUtils.getFormattedString("searchCurrentDefault",
                                               [aTitle]);
    }
    else {
      switch (this.filterCollection) {
        case "history":
          title = PlacesUIUtils.getString("searchHistory");
          break;
        case "downloads":
          title = PlacesUIUtils.getString("searchDownloads");
          break;
        default:
          title = PlacesUIUtils.getString("searchBookmarks");                                    
      }
    }
    this.searchFilter.placeholder = title;
  }
function PSB_updateCollectionTitle ( aTitle ) { let title = "" ; if ( aTitle ) { title = PlacesUIUtils . getFormattedString ( "searchCurrentDefault" , [ aTitle ] ) ; } else { switch ( this . filterCollection ) { case "history" : title = PlacesUIUtils . getString ( "searchHistory" ) ; break ; case "downloads" : title = PlacesUIUtils . getString ( "searchDownloads" ) ; break ; default : title = PlacesUIUtils . getString ( "searchBookmarks" ) ; } } this . searchFilter . placeholder = title ; }
Updates the display with the title of the current collection.
Updates the display with the title of the current collection .
// This is needed when a user performs a folder-specific search // using the scope bar, removes the search-string, and unfocuses // the search box, at least until the removal of the scope bar.