summaryrefslogtreecommitdiff
path: root/addons/web_planner/static/src
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2015-11-04 16:11:53 +0100
committerNicolas Lempereur <nle@odoo.com>2015-11-04 16:19:10 +0100
commitdc69248e297c33239b52d1e46debc18cda8b7c16 (patch)
tree44b9daed5fbd8b30c60ba89916d95adf4fc4e4b2 /addons/web_planner/static/src
parent7a704aaba6905a82f69f503f6d881dbe4cb63ac6 (diff)
[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
Diffstat (limited to 'addons/web_planner/static/src')
-rw-r--r--addons/web_planner/static/src/js/web_planner_common.js4
1 files changed, 4 insertions, 0 deletions
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);
}
});