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 />', '');
$('body')
.modal({
title : 'Error',
content : error,
class : '',
actions : [
{
text : text.modal_failure_approve,
class: 'primary'
}
],
autoShow: true
});
.modal({
title : 'Error',
content : error,
class : '',
actions : [
{
text : text.modal_failure_approve,
class : 'primary'
}
],
autoShow : true,
allowMultiple : true
});
}
function showWarning(warning) {
warning = warning.replace('<br />', '');
$('body')
.modal({
title : 'Warning',
content : warning,
class : '',
actions : [
{
text : text.modal_warning_approve,
class: 'primary'
}
],
autoShow: true,
});
.modal({
title : 'Warning',
content : warning,
class : '',
actions : [
{
text : text.modal_warning_approve,
class : 'primary'
}
],
autoShow : true,
allowMultiple : true
});
}