trigger event when dialog is shown to perform custom dialog actions

This commit is contained in:
Ezequiel Bergamaschi
2014-09-11 14:38:49 -03:00
parent c946742767
commit 63b8c32d63
5 changed files with 24 additions and 4 deletions

View File

@@ -34,6 +34,7 @@ var BootstrapDialog = new Class({
content.append(footer);
}
this._native.find(".modal-dialog").append(content);
this._native.on('shown.bs.modal', this.onDialogShown);
},
_buildFooter: function() {
@@ -78,7 +79,9 @@ var BootstrapDialog = new Class({
//this method should be abstract
},
onDialogShown: function() {
},
onRemoveClick: function(event) {
event.data.model.setValue(null);
event.data.dialog.close();