dist/f2.basic.js
function(message, okCallback, cancelCallback) {

						if (!F2.isInit()) {
							F2.log('F2.init() must be called before F2.UI.Modals.confirm()');
							return;
						}

						if (F2.Rpc.isRemote(_appConfig.instanceId)) {
							F2.Rpc.call(
								_appConfig.instanceId,
								F2.Constants.Sockets.UI_RPC,
								'Modals.confirm',
								[].slice.call(arguments)
							);
						} else {
							// display the alert
							jQuery(_renderConfirm(message))
								.on('show.bs.modal', function() {
									var modal = this;
									
									jQuery(modal).find('.btn-ok').on('click', function() {
										jQuery(modal).modal('hide').remove();
										(okCallback || jQuery.noop)();
									});

									jQuery(modal).find('.btn-cancel').on('click', function() {
										jQuery(modal).modal('hide').remove();
										(cancelCallback || jQuery.noop)();
									});
								})
								.modal({backdrop:true});
						}
					}
function(message, okCallback, cancelCallback) {

						if (!F2.isInit()) {
							F2.log('F2.init() must be called before F2.UI.Modals.confirm()');
							return;
						}

						if (F2.Rpc.isRemote(_appConfig.instanceId)) {
							F2.Rpc.call(
								_appConfig.instanceId,
								F2.Constants.Sockets.UI_RPC,
								'Modals.confirm',
								[].slice.call(arguments)
							);
						} else {
							// display the alert
							jQuery(_renderConfirm(message))
								.on('show.bs.modal', function() {
									var modal = this;
									
									jQuery(modal).find('.btn-ok').on('click', function() {
										jQuery(modal).modal('hide').remove();
										(okCallback || jQuery.noop)();
									});

									jQuery(modal).find('.btn-cancel').on('click', function() {
										jQuery(modal).modal('hide').remove();
										(cancelCallback || jQuery.noop)();
									});
								})
								.modal({backdrop:true});
						}
					}
function ( message , okCallback , cancelCallback ) { if ( ! F2 . isInit ( ) ) { F2 . log ( 'F2.init() must be called before F2.UI.Modals.confirm()' ) ; return ; } if ( F2 . Rpc . isRemote ( _appConfig . instanceId ) ) { F2 . Rpc . call ( _appConfig . instanceId , F2 . Constants . Sockets . UI_RPC , 'Modals.confirm' , [ ] . slice . call ( arguments ) ) ; } else { // display the alert jQuery ( _renderConfirm ( message ) ) . on ( 'show.bs.modal' , function ( ) { var modal = this ; jQuery ( modal ) . find ( '.btn-ok' ) . on ( 'click' , function ( ) { jQuery ( modal ) . modal ( 'hide' ) . remove ( ) ; ( okCallback || jQuery . noop ) ( ) ; } ) ; jQuery ( modal ) . find ( '.btn-cancel' ) . on ( 'click' , function ( ) { jQuery ( modal ) . modal ( 'hide' ) . remove ( ) ; ( cancelCallback || jQuery . noop ) ( ) ; } ) ; } ) . modal ( { backdrop : true } ) ; } }
Display a confirm message on the page
@method confirm
@param {string} message The message to be displayed
@param {function} okCallback The function that will be called when the OK
button is pressed
@param {function} cancelCallback The function that will be called when
the Cancel button is pressed
@for F2.UI.Modals
Display a confirm message on the page