|
|
|
@@ -189,6 +189,8 @@ app.core.View = (function(){ |
|
|
|
okBtnText = params.okButtonText || _lc( 'MODAL_BTN_OK' ),
|
|
|
|
cancelBtnText = params.cancelButtonText || _lc( 'MODAL_BTN_CANCEL' ),
|
|
|
|
showOnlyCloseButton = params.hasOwnProperty( 'showOnlyCloseButton' ) ? params.showOnlyCloseButton : false,
|
|
|
|
hideButtons = params.hasOwnProperty( 'hideButtons' ) ? params.hideButtons : false,
|
|
|
|
hideCloseBtn = params.hasOwnProperty( 'hideCloseBtn' ) ? params.hideCloseBtn : false,
|
|
|
|
cbOnConfirm = params.onConfirm || null,
|
|
|
|
cbOnShow = params.onShow || null,
|
|
|
|
cbOnHide = params.onHide || null,
|
|
|
|
@@ -236,6 +238,14 @@ app.core.View = (function(){ |
|
|
|
{
|
|
|
|
$modal.find( '[data-id="modal-general-btn-ok"]' ).first().show();
|
|
|
|
}
|
|
|
|
if ( true === hideButtons )
|
|
|
|
{
|
|
|
|
$modal.find( '.modal-footer' ).hide();
|
|
|
|
}
|
|
|
|
if ( true === hideCloseBtn )
|
|
|
|
{
|
|
|
|
$modal.find( '.modal-header .close' ).hide();
|
|
|
|
}
|
|
|
|
|
|
|
|
$modal.on( 'shown.bs.modal', function( e )
|
|
|
|
{
|
|
|
|
|