rem: var address; if (card.displayName) address = card.displayName + " <" + card.primaryEmail + ">"; else address = card.primaryEmail; 
add: var address = gHeaderParser.makeFullAddressWString(card.displayName, card.primaryEmail); 
context: function OnLoadEditList(){  //XXX: gAddressBookBundle is set in 2 places because of different callers  gAddressBookBundle = document.getElementById("bundle_addressBook");  gParentURI  = window.arguments[0].abURI;  gListCard = window.arguments[0].abCard;  var listUri  = window.arguments[0].listURI;  gOkCallback = window.arguments[0].okCallback;  gEditList = GetDirectoryFromURI(listUri);  document.getElementById('ListName').value = gEditList.dirName;  document.getElementById('ListNickName').value = gEditList.listNickName;  document.getElementById('ListDescription').value = gEditList.description;  oldListName = gEditList.dirName;  if (gEditList.addressLists)  {    var total = gEditList.addressLists.Count();    if (total)    {      var listbox = document.getElementById('addressingWidget');      var newListBoxNode = listbox.cloneNode(false);      var templateNode = listbox.getElementsByTagName("listitem")[0];      top.MAX_RECIPIENTS = 0;      for ( var i = 0;  i < total; i++ )      {        var card = gEditList.addressLists.GetElementAt(i);        card = card.QueryInterface(Components.interfaces.nsIAbCard);        var address;        if (card.displayName)          address = card.displayName + " <" + card.primaryEmail + ">";        else          address = card.primaryEmail;        SetInputValue(address, newListBoxNode, templateNode);      }      var parent = listbox.parentNode;      parent.replaceChild(newListBoxNode, listbox);    }  }  document.addEventListener("keypress", awDocumentKeyPress, true);  moveToAlertPosition();  // workaround for bug 118337 - for mailing lists that have more rows than fits inside  // the display, the value of the textbox inside the new row isn't inherited into the input -  // the first row then appears to be duplicated at the end although it is actually empty.  // see awAppendNewRow which copies first row and clears it  setTimeout(AppendLastRow, 0);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/d06aa64eaecdecda7dc230b30ab927fe32e37140/abMailListDialog.js/buggy/mailnews/addrbook/resources/content/abMailListDialog.js