rem: promptService.universalDialog( window, null, gComposeMsgsBundle.getString("saveDlogTitle"), gComposeMsgsBundle.getString("saveDlogMessage"), null, gComposeMsgsBundle.getString("saveDlogSaveBtn"), gComposeMsgsBundle.getString("saveDlogCancelBtn"), gComposeMsgsBundle.getString("saveDlogDontSaveBtn"), null, null, null, {value:0}, {value:0}, "question-icon", {value:"false"}, 3, 0, 0, result ); 
add: promptService.confirmEx(window, gComposeMsgsBundle.getString("saveDlogTitle"), gComposeMsgsBundle.getString("saveDlogMessage"), (promptService.BUTTON_TITLE_SAVE * promptService.BUTTON_POS_0) + (promptService.BUTTON_TITLE_CANCEL * promptService.BUTTON_POS_1), gComposeMsgsBundle.getString("saveDlogDontSaveBtn"), null, {value:0}, result);  
context: function ComposeCanClose(){  if (sendOrSaveOperationInProgress)    return false;	// Returns FALSE only if user cancels save action	if (contentChanged || msgCompose.bodyModified)	{		// call window.focus, since we need to pop up a dialog		// and therefore need to be visible (to prevent user confusion)		window.focus();        		if (promptService)		{            var result = {value:0};			promptService.universalDialog(				window,				null,				gComposeMsgsBundle.getString("saveDlogTitle"),				gComposeMsgsBundle.getString("saveDlogMessage"),				null,				gComposeMsgsBundle.getString("saveDlogSaveBtn"),				gComposeMsgsBundle.getString("saveDlogCancelBtn"),				gComposeMsgsBundle.getString("saveDlogDontSaveBtn"),				null,				null,				null,				{value:0},				{value:0},				"question-icon",				{value:"false"},				3,				0,				0,				result				);			if (result)			{				switch (result.value)				{					case 0: //Save                        if (LastToClose())                            NotifyQuitApplication();						SaveAsDraft();						break;					case 1:	//Cancel						return false;					case 2:	//Don't Save						break;				}			}		}		msgCompose.bodyModified = false;		contentChanged = false;	}	return true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/fad24de4eefeb4000c6e8b8fb86d5a6d08dc132f/MsgComposeCommands.js/buggy/mailnews/compose/resources/content/MsgComposeCommands.js