From 40b8fdec0053cae5e293382cc2bb90ba45ede550 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Wed, 28 Jan 2015 11:47:51 +0100 Subject: [PATCH] [FIX] Web: views.js: view switching: hide view.$container Without hidding view.$container, when coming back to Kanban or List views, it was no more possible to click anywhere on those views. Fixes the bug introduced by rev c465605049bdce16621e4e5f57c52ebab23de813 --- addons/web/static/src/js/views.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/addons/web/static/src/js/views.js b/addons/web/static/src/js/views.js index c01a648745d..39a082ff21e 100644 --- a/addons/web/static/src/js/views.js +++ b/addons/web/static/src/js/views.js @@ -657,10 +657,9 @@ instance.web.ViewManager = instance.web.Widget.extend({ this.view_stack.push(view); // Hide active view (at first rendering, there is no view to hide) - if (this.active_view && - this.active_view != view && - this.active_view.controller) { - this.active_view.controller.do_hide(); + if (this.active_view && this.active_view !== view) { + if (this.active_view.controller) this.active_view.controller.do_hide(); + if (this.active_view.$container) this.active_view.$container.hide(); } this.active_view = view;