[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 c465605049
This commit is contained in:
Aaron Bohy
2015-01-28 13:08:43 +01:00
parent 71f710c671
commit 40b8fdec00
+3 -4
View File
@@ -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;