rem: visible = cvSetNodeWithLabel(data.cvCustom1, zCustom1, card.Custom1); visible = cvSetNodeWithLabel(data.cvCustom2, zCustom2, card.Custom2) || visible; visible = cvSetNodeWithLabel(data.cvCustom3, zCustom3, card.Custom3) || visible; visible = cvSetNodeWithLabel(data.cvCustom4, zCustom4, card.Custom4) || visible; visible = cvSetNode(data.cvNotes, card.Notes) || visible; 
add: visible = cvSetNodeWithLabel(data.cvCustom1, zCustom1, card.custom1); visible = cvSetNodeWithLabel(data.cvCustom2, zCustom2, card.custom2) || visible; visible = cvSetNodeWithLabel(data.cvCustom3, zCustom3, card.custom3) || visible; visible = cvSetNodeWithLabel(data.cvCustom4, zCustom4, card.custom4) || visible; visible = cvSetNode(data.cvNotes, card.notes) || visible; 
context: function DisplayCardViewPane(abNode){	var uri = abNode.getAttribute('id');	var cardResource = top.rdf.GetResource(uri);	var card = cardResource.QueryInterface(Components.interfaces.nsIAbCard);		// FIX ME - this should use a i18n name routine in JS	var name = card.DisplayName;	if ( card.FirstName.length + card.LastName.length > 0 )		name = card.FirstName + " " + card.LastName;		var nickname;	if ( card.NickName )		nickname = "\"" + card.NickName + "\"";			var data = top.cvData;	var visible;		// set fields in card view pane	cvSetNode(data.CardTitle, "Card for " + card.DisplayName);		// Name section	cvSetNode(data.cvhName, name);	cvSetNode(data.cvNickname, nickname);	cvSetNode(data.cvEmail1, card.PrimaryEmail);	cvSetNode(data.cvEmail2, card.SecondEmail);	// Home section	visible = cvSetNode(data.cvHomeAddress, card.HomeAddress);	visible = cvSetNode(data.cvHomeAddress2, card.HomeAddress2) || visible;	visible = cvSetCityStateZip(data.cvHomeCityStZip, card.HomeCity, card.HomeState, card.HomeZipCode) || visible;	visible = cvSetNode(data.cvHomeCountry, card.HomeCountry) || visible;	cvSetVisible(data.cvhHome, visible);	// Other section	visible = cvSetNodeWithLabel(data.cvCustom1, zCustom1, card.Custom1);	visible = cvSetNodeWithLabel(data.cvCustom2, zCustom2, card.Custom2) || visible;	visible = cvSetNodeWithLabel(data.cvCustom3, zCustom3, card.Custom3) || visible;	visible = cvSetNodeWithLabel(data.cvCustom4, zCustom4, card.Custom4) || visible;	visible = cvSetNode(data.cvNotes, card.Notes) || visible;	cvSetVisible(data.cvhOther, visible);	// Phone section	visible = cvSetNodeWithLabel(data.cvPhWork, zWork, card.WorkPhone);	visible = cvSetNodeWithLabel(data.cvPhHome, zHome, card.HomePhone) || visible;	visible = cvSetNodeWithLabel(data.cvPhFax, zFax, card.FaxNumber) || visible;	visible = cvSetNodeWithLabel(data.cvPhCellular, zCellular, card.CellularNumber) || visible;	visible = cvSetNodeWithLabel(data.cvPhPager, zPager, card.PagerNumber) || visible;	cvSetVisible(data.cvhPhone, visible);	// Work section	visible = cvSetNode(data.cvJobTitle, card.JobTitle);	visible = cvSetNode(data.cvDepartment, card.Department) || visible;	visible = cvSetNode(data.cvCompany, card.Company) || visible;	visible = cvSetNode(data.cvWorkAddress, card.WorkAddress) || visible;	visible = cvSetNode(data.cvWorkAddress2, card.WorkAddress2) || visible;	visible = cvSetCityStateZip(data.cvWorkCityStZip, card.WorkCity, card.WorkState, card.WorkZipCode) || visible;	visible = cvSetNode(data.cvWorkCountry, card.WorkCountry) || visible;	cvSetVisible(data.cvhWork, visible);	// make the card view box visible	cvSetVisible(top.cvData.CardViewBox, true);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/0f17235749ad744730d0825c7f2cb78a370020d3/abCardViewOverlay.js/clean/mailnews/addrbook/resources/content/abCardViewOverlay.js