rem:   var oneAddressBookSelected = false; if ( dirTree && dirTree.selectedItems && (dirTree.selectedItems.length == 1) ) oneAddressBookSelected = true;   var selectedCards = GetSelectedAddresses(); var oneOrMoreCardsSelected = false; if ( selectedCards ) oneOrMoreCardsSelected = true;    goSetCommandEnabled('cmd_SortByName', oneAddressBookSelected); goSetCommandEnabled('cmd_SortByEmail', oneAddressBookSelected); goSetCommandEnabled('cmd_SortByWorkPhone', oneAddressBookSelected); goSetCommandEnabled('cmd_SortByOrganization', oneAddressBookSelected); 
context: function CommandUpdate_AddressBook(){	goUpdateCommand('button_delete');		// get selection info from dir pane	var oneAddressBookSelected = false;	if ( dirTree && dirTree.selectedItems && (dirTree.selectedItems.length == 1) )		oneAddressBookSelected = true;			// get selection info from results pane	var selectedCards = GetSelectedAddresses();	var oneOrMoreCardsSelected = false;	if ( selectedCards )		oneOrMoreCardsSelected = true;		// set commands to enabled / disabled	//goSetCommandEnabled('cmd_PrintCard', oneAddressBookSelected);	goSetCommandEnabled('cmd_SortByName', oneAddressBookSelected);	goSetCommandEnabled('cmd_SortByEmail', oneAddressBookSelected);	goSetCommandEnabled('cmd_SortByWorkPhone', oneAddressBookSelected);	goSetCommandEnabled('cmd_SortByOrganization', oneAddressBookSelected);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d08d4d3f9753b01573c0820f3dc3010c62295d11/addressbook.js/clean/mailnews/addrbook/resources/content/addressbook.js