Confirm dialog settings.
// Define the custom confirm function.
// Function can be used as custom event function for Intrexx action controls (for example): `myConfirm();`.
function myConfirm() {
var retDeferred = $.Deferred();
ix.confirm.show({
'title': ix.text.i18n.get("CTRL_CONFIRM_DELETE_HEADLINE"),
'message': ix.text.i18n.get("CTRL_CONFIRM_DELETE"),
'buttons': {
'Yes': {
'css': 'margin:0 5px 0 5px;',
'action': function() {
retDeferred.resolve();
}
},
'No': {
'css': 'margin:0 5px 0 5px;',
'action': function() {
retDeferred.reject();
}
}
},
'escAction': function() {
retDeferred.reject();
}
});
return retDeferred;
};
Method to show a confirmation dialog.