when dialog is closed, remove divs from dom

This commit is contained in:
Mariela Michalek 2014-09-11 14:42:15 -03:00
parent 7c31954b19
commit 687657bab3

View File

@ -34,6 +34,9 @@ var BootstrapDialog = new Class({
content.append(footer); content.append(footer);
} }
this._native.find(".modal-dialog").append(content); this._native.find(".modal-dialog").append(content);
this._native.on('hidden.bs.modal', function() {
$(this).remove();
});
this._native.on('shown.bs.modal', this.onDialogShown); this._native.on('shown.bs.modal', this.onDialogShown);
}, },