Remove whatsnew icon when modal is displayed or dismissed

This commit is contained in:
Gautier P 2021-03-23 16:29:04 +01:00
parent cb9f4fd85d
commit 83ac111262
3 changed files with 27 additions and 14 deletions

View file

@ -3,6 +3,7 @@ BR.Message = L.Class.extend({
// true to manually attach click event to close button,
// Bootstrap data-api's auto-initialization doesn't work in Controls because of stopPropagation
alert: false,
onClosed: null,
},
initialize: function (id, options) {
@ -45,6 +46,10 @@ BR.Message = L.Class.extend({
msg +
'</div>';
if (this.options.onClosed) {
$('#' + this.id + ' .alert').on('closed.bs.alert', this.options.onClosed);
}
if (this.options.alert) {
$('#' + this.id + ' .alert').alert();
}