I implemented a message box dialog based on the confirm dialog. How do I prevent clicks on the backdrop from closing the dialog?
PHP Code:
var diag = new Espo.ui.Dialog({closeButton:false, removeOnClose:false,
backdrop: true,
header: '<b>TITLE</b>',
className: 'dialog-confirm',
body: '<span class="confirm-message">' + "Bla bla bla <span style='color:red;'>BLAH</span>.",
buttons: [{
text: 'OK',
name: 'cancel',
onClick: function () {
diag.close();
}, style: 'danger',
pullRight: true
}
]}); diag.show()
Comment