rem: gEditCard.card.editCardToDatabase(gEditCard.abURI); 
add: directory.modifyCard(gEditCard.card); 
context: function EditCardOKButton(){  if (!CheckCardRequiredDataPresence(document))    return false;  // don't close window  // See if this card is in any mailing list  // if so then we need to update the addresslists of those mailing lists  var index = -1;  var directory = GetDirectoryFromURI(gEditCard.abURI);  // if the directory is a mailing list we need to search all the mailing lists  // in the parent directory if the card exists.  if (directory.isMailList) {    var parentURI = GetParentDirectoryFromMailingListURI(gEditCard.abURI);    directory = GetDirectoryFromURI(parentURI);  }  var listDirectoriesCount = directory.addressLists.Count();  var foundDirectories = new Array();  var foundDirectoriesCount = 0;  var i;  // create a list of mailing lists and the index where the card is at.  for ( i=0;  i < listDirectoriesCount; i++ ) {    var subdirectory = directory.addressLists.QueryElementAt(i, Components.interfaces.nsIAbDirectory);    index = findCardIndex(subdirectory);    if (index > -1)    {      foundDirectories[foundDirectoriesCount] = {directory:subdirectory, index:index};      foundDirectoriesCount++;    }  }    CheckAndSetCardValues(gEditCard.card, document, false);  gEditCard.card.editCardToDatabase(gEditCard.abURI);    for (i=0; i<foundDirectoriesCount; i++) {      // Update the addressLists item for this card      foundDirectories[i].directory.addressLists.              SetElementAt(foundDirectories[i].index, gEditCard.card);  }  NotifySaveListeners();  // callback to allow caller to update  if (gOkCallback)    gOkCallback();  return true;  // close the window}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/55c3839e6e4cd19eac52efb7a944cd051cc54892/abCardOverlay.js/clean/mailnews/addrbook/resources/content/abCardOverlay.js