Allow multiple error/warning modals

This commit is contained in:
grandeljay 2022-06-09 08:06:44 +02:00
parent 763fee4c4c
commit ddee1931ce

View file

@ -249,34 +249,36 @@ function showError(error) {
error = error.replace('<br />', ''); error = error.replace('<br />', '');
$('body') $('body')
.modal({ .modal({
title : 'Error', title : 'Error',
content : error, content : error,
class : '', class : '',
actions : [ actions : [
{ {
text : text.modal_failure_approve, text : text.modal_failure_approve,
class: 'primary' class : 'primary'
} }
], ],
autoShow: true autoShow : true,
}); allowMultiple : true
});
} }
function showWarning(warning) { function showWarning(warning) {
warning = warning.replace('<br />', ''); warning = warning.replace('<br />', '');
$('body') $('body')
.modal({ .modal({
title : 'Warning', title : 'Warning',
content : warning, content : warning,
class : '', class : '',
actions : [ actions : [
{ {
text : text.modal_warning_approve, text : text.modal_warning_approve,
class: 'primary' class : 'primary'
} }
], ],
autoShow: true, autoShow : true,
}); allowMultiple : true
});
} }