[FIX] web: properly handle setting stored in localstorage

This commit is contained in:
Géry Debongnie
2017-12-11 10:26:57 +01:00
parent 8a9900200b
commit f2a5ebe32f
@@ -283,7 +283,7 @@ var SearchView = Widget.extend({
this.filters = [];
this.groupbys = [];
var visibleSearchMenu = this.call('local_storage', 'getItem', 'visible_search_menu');
this.visible_filters = (visibleSearchMenu === 'true');
this.visible_filters = (visibleSearchMenu !== 'false');
this.input_subviews = []; // for user input in searchbar
this.search_defaults = this.options.search_defaults || {};
this.headless = this.options.hidden && _.isEmpty(this.search_defaults);