Allow multiple error/warning modals
This commit is contained in:
parent
763fee4c4c
commit
ddee1931ce
1 changed files with 26 additions and 24 deletions
|
@ -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
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue