rem: awSetInputAndPopupFromArray(msgCompFields.SplitRecipients(msgCompFields.replyTo, false), "addr_reply", newTreeChildrenNode, templateNode); awSetInputAndPopupFromArray(msgCompFields.SplitRecipients(msgCompFields.to, false), "addr_to", newTreeChildrenNode, templateNode); awSetInputAndPopupFromArray(msgCompFields.SplitRecipients(msgCompFields.cc, false), "addr_cc", newTreeChildrenNode, templateNode); awSetInputAndPopupFromArray(msgCompFields.SplitRecipients(msgCompFields.bcc, false), "addr_bcc", newTreeChildrenNode, templateNode); awSetInputAndPopup(msgCompFields.otherRandomHeaders, "addr_other", newTreeChildrenNode, templateNode); awSetInputAndPopup(msgCompFields.newsgroups, "addr_newsgroups", newTreeChildrenNode, templateNode); awSetInputAndPopup(msgCompFields.followupTo, "addr_followup", newTreeChildrenNode, templateNode);   var msgComposeType = Components.interfaces.nsIMsgCompType; if (msgType == msgComposeType.New || top.MAX_RECIPIENTS == 0) _awSetInputAndPopup("", "addr_to", newTreeChildrenNode, templateNode); dump("replacing child in comp fields 2 recips \n"); var parent = treeChildren.parentNode; parent.replaceChild(newTreeChildrenNode, treeChildren); 
add: top.MAX_RECIPIENTS = 0;  awSetInputAndPopupFromArray(msgCompFields.SplitRecipients(msgCompFields.replyTo, false), "addr_reply", newTreeChildrenNode, templateNode); awSetInputAndPopupFromArray(msgCompFields.SplitRecipients(msgCompFields.to, false), "addr_to", newTreeChildrenNode, templateNode); awSetInputAndPopupFromArray(msgCompFields.SplitRecipients(msgCompFields.cc, false), "addr_cc", newTreeChildrenNode, templateNode); awSetInputAndPopupFromArray(msgCompFields.SplitRecipients(msgCompFields.bcc, false), "addr_bcc", newTreeChildrenNode, templateNode); awSetInputAndPopup(msgCompFields.otherRandomHeaders, "addr_other", newTreeChildrenNode, templateNode); awSetInputAndPopup(msgCompFields.newsgroups, "addr_newsgroups", newTreeChildrenNode, templateNode); awSetInputAndPopup(msgCompFields.followupTo, "addr_followup", newTreeChildrenNode, templateNode);   var msgComposeType = Components.interfaces.nsIMsgCompType; if (msgType == msgComposeType.New || top.MAX_RECIPIENTS == 0) _awSetInputAndPopup("", "addr_to", newTreeChildrenNode, templateNode); dump("replacing child in comp fields 2 recips \n"); var parent = treeChildren.parentNode; parent.replaceChild(newTreeChildrenNode, treeChildren); 
context: function CompFields2Recipients(msgCompFields, msgType){	if (msgCompFields)	{	    var treeChildren = document.getElementById('addressWidgetBody');	    var newTreeChildrenNode = treeChildren.cloneNode(false);	    var templateNode = treeChildren.firstChild;				top.MAX_RECIPIENTS = 0;		awSetInputAndPopupFromArray(msgCompFields.SplitRecipients(msgCompFields.replyTo, false), "addr_reply", newTreeChildrenNode, templateNode);		awSetInputAndPopupFromArray(msgCompFields.SplitRecipients(msgCompFields.to, false), "addr_to", newTreeChildrenNode, templateNode);		awSetInputAndPopupFromArray(msgCompFields.SplitRecipients(msgCompFields.cc, false), "addr_cc", newTreeChildrenNode, templateNode);		awSetInputAndPopupFromArray(msgCompFields.SplitRecipients(msgCompFields.bcc, false), "addr_bcc", newTreeChildrenNode, templateNode);		awSetInputAndPopup(msgCompFields.otherRandomHeaders, "addr_other", newTreeChildrenNode, templateNode);		awSetInputAndPopup(msgCompFields.newsgroups, "addr_newsgroups", newTreeChildrenNode, templateNode);		awSetInputAndPopup(msgCompFields.followupTo, "addr_followup", newTreeChildrenNode, templateNode);				//If it's a new message, we need to add an extrat empty recipient.		var msgComposeType = Components.interfaces.nsIMsgCompType;		if (msgType == msgComposeType.New || top.MAX_RECIPIENTS == 0)		    _awSetInputAndPopup("", "addr_to", newTreeChildrenNode, templateNode);		dump("replacing child in comp fields 2 recips \n");	    var parent = treeChildren.parentNode;	    parent.replaceChild(newTreeChildrenNode, treeChildren);      awFitDummyRows();        setTimeout("awFinishCopyNodes();", 0);	}}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/0b2dd2b2d2fd037df917e07645fa019a963332a5/addressingWidgetOverlay.js/buggy/mailnews/compose/resources/content/addressingWidgetOverlay.js