B2G/gecko/browser/components/places/content/places.js
/**
   * Called when a scope button in the scope bar is clicked.
   * @param   aButton
   *          the scope button that was selected
   */
Called when a scope button in the scope bar is clicked.
@param   aButton
the scope button that was selected
Called when a scope button in the scope bar is clicked . @param aButton the scope button that was selected
function PQB_onScopeSelected(aButton) {
    switch (aButton.id) {
    case "scopeBarHistory":
      this.setScope("history");
      break;
    case "scopeBarFolder":
      this.setScope("collection");
      break;
    case "scopeBarDownloads":
      this.setScope("downloads");
      break;
    case "scopeBarAll":
      this.setScope("bookmarks");
      break;
    default:
      throw "Invalid search scope button ID";
      break;
    }
  }
function PQB_onScopeSelected ( aButton ) { switch ( aButton . id ) { case "scopeBarHistory" : this . setScope ( "history" ) ; break ; case "scopeBarFolder" : this . setScope ( "collection" ) ; break ; case "scopeBarDownloads" : this . setScope ( "downloads" ) ; break ; case "scopeBarAll" : this . setScope ( "bookmarks" ) ; break ; default : throw "Invalid search scope button ID" ; break ; } }
Called when a scope button in the scope bar is clicked.
Called when a scope button in the scope bar is clicked .