rem: if (card.name.length) address = card.name + " <" + card.primaryEmail + ">"; 
add: if (card.displayName) address = card.displayName + " <" + card.primaryEmail + ">"; 
context: function OnLoadEditList(){  //XXX: gAddressBookBundle is set in 2 places because of different callers  gAddressBookBundle = document.getElementById("bundle_addressBook");  parentURI  = window.arguments[0].abURI;  var listUri  = window.arguments[0].listURI;  var rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService();  rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService);  editList = rdf.GetResource(listUri);  editList = editList.QueryInterface(Components.interfaces.nsIAbDirectory);  document.getElementById('ListName').value = editList.listName;  document.getElementById('ListNickName').value = editList.listNickName;  document.getElementById('ListDescription').value = editList.description;  oldListName = editList.listName;  if (editList.addressLists)  {    var total = editList.addressLists.Count();    if (total)    {      var treeChildren = document.getElementById('addressList');      var newTreeChildrenNode = treeChildren.cloneNode(false);      var templateNode = treeChildren.firstChild;      top.MAX_RECIPIENTS = 0;      for ( var i = 0;  i < total; i++ )      {        var card = editList.addressLists.GetElementAt(i);        card = card.QueryInterface(Components.interfaces.nsIAbCard);        var address;        if (card.name.length)          address = card.name + " <" + card.primaryEmail + ">";        else          address = card.primaryEmail;        SetInputValue(address, newTreeChildrenNode, templateNode);      }      var parent = treeChildren.parentNode;      parent.replaceChild(newTreeChildrenNode, treeChildren);    }  }  AppendnewRowAndSetFocus();  // focus on first name  var listName = document.getElementById('ListName');  if ( listName )    listName.focus();  moveToAlertPosition();}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/d08d4d3f9753b01573c0820f3dc3010c62295d11/abMailListDialog.js/clean/mailnews/addrbook/resources/content/abMailListDialog.js