rem: var tree = document.getElementById('fieldList'); if ( tree && tree.selectedItems && (tree.selectedItems.length > 0) ) { var body = document.getElementById("exportBody"); if (body) { var name; var fIndex; for (var index = 0; index < tree.selectedItems.length; index++) { name = tree.selectedItems[index].firstChild.firstChild.getAttribute( 'value'); fIndex = tree.selectedItems[index].getAttribute( 'field-index'); AddFieldToList( body, name, fIndex); } } } 
add: var tree = document.getElementById('fieldList'); if ( tree && tree.selectedItems && (tree.selectedItems.length > 0) ) { var body = document.getElementById("exportBody"); if (body) { var name; var fIndex; for (var index = 0; index < tree.selectedItems.length; index++) { name = tree.selectedItems[index].firstChild.firstChild.getAttribute( 'label'); fIndex = tree.selectedItems[index].getAttribute( 'field-index'); AddFieldToList( body, name, fIndex); } } } 
context: function OnAddExport(){	var tree = document.getElementById('fieldList');	if ( tree && tree.selectedItems && (tree.selectedItems.length > 0) ) {		var body = document.getElementById("exportBody");		if (body) {			var name;			var fIndex;			for (var index = 0; index < tree.selectedItems.length; index++) {				name = tree.selectedItems[index].firstChild.firstChild.getAttribute( 'value');				fIndex = tree.selectedItems[index].getAttribute( 'field-index');				AddFieldToList( body, name, fIndex);			}		}	}	}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/eaa6754a0a946375badf1165b3e4af3999e4b03c/fieldMapExport.js/clean/mailnews/import/resources/content/fieldMapExport.js