[FIX] web: add modal-body class when renderElement

This commit is contained in:
Adrien Dieudonne
2016-09-28 16:55:51 +02:00
committed by Géry Debongnie
parent 66cb0d7aa3
commit 09f1caf982
+1 -1
View File
@@ -69,6 +69,7 @@ var Dialog = Widget.extend({
if(this.$content) {
this.setElement(this.$content);
}
this.$el.addClass('modal-body ' + this.dialogClass);
},
set_buttons: function(buttons) {
@@ -118,7 +119,6 @@ var Dialog = Widget.extend({
var self = this;
this.replace(this.$modal.find(".modal-body")).then(function() {
self.$el.addClass('modal-body ' + self.dialogClass);
self.$modal.modal('show');
self._opened.resolve();
});