summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorHetal Dhanak <hdh@odoo.com>2019-05-22 12:48:47 +0000
committerMohammed Shekha <msh@openerp.com>2019-05-24 11:19:34 +0000
commit84130174df8fbe9b26d2ee96d3c178ae5d485c94 (patch)
treea921a16a30e8f8f362861737fc808199cc642860 /addons/web/static/src
parent946641da550582ef73bfd6e28c105b23cb388ca1 (diff)
[FIX] web: make calendar toggle full width work
toggle full width of calendar not working, this is because getItem of localstorage service now returns parsed value, AbstractStorageService now return JSON.parse(value) this commit fixes that. task-1975004 closes odoo/odoo#33570 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com> Co-authored-by: Priyanka Kaakdiya <pka@odoo.com>
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/js/views/calendar/calendar_model.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/js/views/calendar/calendar_model.js b/addons/web/static/src/js/views/calendar/calendar_model.js
index fa2931a6d19..430b72f8a60 100644
--- a/addons/web/static/src/js/views/calendar/calendar_model.js
+++ b/addons/web/static/src/js/views/calendar/calendar_model.js
@@ -307,7 +307,7 @@ return AbstractModel.extend({
* Toggle the sidebar (containing the mini calendar)
*/
toggleFullWidth: function () {
- var fullWidth = this.call('local_storage', 'getItem', 'calendar_fullWidth') !== 'true';
+ var fullWidth = this.call('local_storage', 'getItem', 'calendar_fullWidth') !== true;
this.call('local_storage', 'setItem', 'calendar_fullWidth', fullWidth);
},
/**
@@ -439,7 +439,7 @@ return AbstractModel.extend({
*/
_loadCalendar: function () {
var self = this;
- this.data.fullWidth = this.call('local_storage', 'getItem', 'calendar_fullWidth') === 'true';
+ this.data.fullWidth = this.call('local_storage', 'getItem', 'calendar_fullWidth') === true;
this.data.fc_options = this._getFullCalendarOptions();
var defs = _.map(this.data.filters, this._loadFilter.bind(this));