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

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

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

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

						if (F2.Rpc.isRemote(_appConfig.instanceId)) {
							F2.Rpc.call(
								_appConfig.instanceId,
								F2.Constants.Sockets.UI_RPC,
								'Modals.alert',
								[].slice.call(arguments)
							);
						} else {
							// display the alert
							jQuery(_renderAlert(message))
								.on('show.bs.modal', function() {
									var modal = this;
									jQuery(modal).find('.btn-primary').on('click', function() {
										jQuery(modal).modal('hide').remove();
										(callback || jQuery.noop)();
									});
								})
								.modal({backdrop:true});
						}
					}
function ( message , callback ) { if ( ! F2 . isInit ( ) ) { F2 . log ( 'F2.init() must be called before F2.UI.Modals.alert()' ) ; return ; } if ( F2 . Rpc . isRemote ( _appConfig . instanceId ) ) { F2 . Rpc . call ( _appConfig . instanceId , F2 . Constants . Sockets . UI_RPC , 'Modals.alert' , [ ] . slice . call ( arguments ) ) ; } else { // display the alert jQuery ( _renderAlert ( message ) ) . on ( 'show.bs.modal' , function ( ) { var modal = this ; jQuery ( modal ) . find ( '.btn-primary' ) . on ( 'click' , function ( ) { jQuery ( modal ) . modal ( 'hide' ) . remove ( ) ; ( callback || jQuery . noop ) ( ) ; } ) ; } ) . modal ( { backdrop : true } ) ; } }
Display an alert message on the page
@method alert
@param {string} message The message to be displayed
@param {function} [callback] The callback to be fired when the user
closes the dialog
@for F2.UI.Modals
Display an alert message on the page