Remove whatsnew icon when modal is displayed or dismissed
This commit is contained in:
parent
cb9f4fd85d
commit
83ac111262
3 changed files with 27 additions and 14 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue