From dc69248e297c33239b52d1e46debc18cda8b7c16 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Wed, 4 Nov 2015 16:11:53 +0100 Subject: [PATCH] [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 --- addons/web_planner/static/src/js/web_planner_common.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/web_planner/static/src/js/web_planner_common.js b/addons/web_planner/static/src/js/web_planner_common.js index 876fcfc47de..58b2a72518a 100644 --- a/addons/web_planner/static/src/js/web_planner_common.js +++ b/addons/web_planner/static/src/js/web_planner_common.js @@ -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); } });