[FIX] web_planner: hide background pn planner destroy

A PlannerDialog does not extend Dialog for historical and graphical
reasons. Thus sometime a logic in Dialog is missed in a PlannerDialog
whilst it is useful.

In this instance, when doing an action from the planner which destroyed
it, the modal backdrop was not removed by bootstrap. Bootstrap does this
when the modal 'hide' function is called.

opw-653734
This commit is contained in:
Nicolas Lempereur
2015-11-04 16:19:10 +01:00
parent 7a704aaba6
commit dc69248e29
@@ -403,6 +403,10 @@ var PlannerDialog = Widget.extend({
ev.preventDefault();
this.$el.modal('hide');
this.$el.detach();
},
destroy: function() {
this.$el.modal('hide');
return this._super.apply(this, arguments);
}
});