B2G/gecko/browser/components/places/content/bookmarkProperties.js
/**
   * This method returns the correct label for the dialog's "accept"
   * button based on the variant of the dialog.
   */
This method returns the correct label for the dialog's "accept"
button based on the variant of the dialog.
This method returns the correct label for the dialog ' s " accept " button based on the variant of the dialog .
function BPP__getAcceptLabel() {
    if (this._action == ACTION_ADD) {
      if (this._URIs.length)
        return this._strings.getString("dialogAcceptLabelAddMulti");
      if (this._itemType == LIVEMARK_CONTAINER)
        return this._strings.getString("dialogAcceptLabelAddLivemark");
      if (this._dummyItem || this._loadInSidebar)
        return this._strings.getString("dialogAcceptLabelAddItem");
      return this._strings.getString("dialogAcceptLabelSaveItem");
    }
    return this._strings.getString("dialogAcceptLabelEdit");
  }
function BPP__getAcceptLabel ( ) { if ( this . _action == ACTION_ADD ) { if ( this . _URIs . length ) return this . _strings . getString ( "dialogAcceptLabelAddMulti" ) ; if ( this . _itemType == LIVEMARK_CONTAINER ) return this . _strings . getString ( "dialogAcceptLabelAddLivemark" ) ; if ( this . _dummyItem || this . _loadInSidebar ) return this . _strings . getString ( "dialogAcceptLabelAddItem" ) ; return this . _strings . getString ( "dialogAcceptLabelSaveItem" ) ; } return this . _strings . getString ( "dialogAcceptLabelEdit" ) ; }
This method returns the correct label for the dialog's "accept"
 button based on the variant of the dialog.
This method returns the correct label for the dialog ' s " accept " button based on the variant of the dialog .