bundles/org.eclipse.orion.client.ui/web/orion/dialogs.js
function(msg, onDone, node, title) {
		 	if(node){
			 	this._commandRegistry.confirmWithButtons(node, msg,[{label:"OK",callback:function(){
						onDone(true);
					},type:"ok"},{label:"Cancel",callback:function(){
						onDone(false);
					},type:"cancel"}]);
		 	}else{
				var dialog = new mConfirmDialog.ConfirmDialog({
					confirmMessage: msg,
					title: title || messages.Confirm
				});
				dialog.show();
				var _self = this;
				dialog.addEventListener("dismiss", function(event) {
					if (event.value === true) {
					    onDone(true);
					}else if(event.value === false){
						onDone(false);
					}
				});
		 	}
		 }
function(msg, onDone, node, title) {
		 	if(node){
			 	this._commandRegistry.confirmWithButtons(node, msg,[{label:"OK",callback:function(){
						onDone(true);
					},type:"ok"},{label:"Cancel",callback:function(){
						onDone(false);
					},type:"cancel"}]);
		 	}else{
				var dialog = new mConfirmDialog.ConfirmDialog({
					confirmMessage: msg,
					title: title || messages.Confirm
				});
				dialog.show();
				var _self = this;
				dialog.addEventListener("dismiss", function(event) {
					if (event.value === true) {
					    onDone(true);
					}else if(event.value === false){
						onDone(false);
					}
				});
		 	}
		 }
function ( msg , onDone , node , title ) { if ( node ) { this . _commandRegistry . confirmWithButtons ( node , msg , [ { label : "OK" , callback : function ( ) { onDone ( true ) ; } , type : "ok" } , { label : "Cancel" , callback : function ( ) { onDone ( false ) ; } , type : "cancel" } ] ) ; } else { var dialog = new mConfirmDialog . ConfirmDialog ( { confirmMessage : msg , title : title || messages . Confirm } ) ; dialog . show ( ) ; var _self = this ; dialog . addEventListener ( "dismiss" , function ( event ) { if ( event . value === true ) { onDone ( true ) ; } else if ( event . value === false ) { onDone ( false ) ; } } ) ; } }
Prompts the user for configuration, and executes the provided function when done.
@param {String} message The confirmation message
@param {Function} onDone The function to invoke upon confirmation.
Prompts the user for configuration and executes the provided function when done .