[FIX] web: clicking on view buttons now refresh view

clicking on a view button should load the view, even if it is the
active view.
This commit is contained in:
Géry Debongnie
2014-12-19 16:08:01 +01:00
parent 4c9eae987a
commit 2dceaa9ffe
+1 -3
View File
@@ -605,9 +605,7 @@ instance.web.ViewManager = instance.web.Widget.extend({
this.$header_col = this.$header.find('.oe-header-title');
this.$search_col = this.$header.find('.oe-view-manager-search-view');
this.$switch_buttons.click(function (event) {
if (!$(event.target).hasClass('active')) {
self.switch_mode($(this).data('view-type'));
}
self.switch_mode($(this).data('view-type'));
});
var views_ids = {};
_.each(this.views, function (view) {