diff options
| author | Aaron Bohy <aab@odoo.com> | 2015-01-28 11:47:51 +0100 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2015-01-28 13:08:43 +0100 |
| commit | 40b8fdec0053cae5e293382cc2bb90ba45ede550 (patch) | |
| tree | 9a59a3aa6ba3b943f96e126fe9c7475bdd63ad9b /addons/web/static | |
| parent | 71f710c6718b8ff3e17bd1162cc0b4a990bfb4bc (diff) | |
[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
Diffstat (limited to 'addons/web/static')
| -rw-r--r-- | addons/web/static/src/js/views.js | 7 |
1 files 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; |
