From d464327074935e42e09e14e8fc6c043958841a4d Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 26 Jul 2023 08:40:47 -0600 Subject: [PATCH] Calendar: Fix hidden calendars in desktop and mobile view --- calendar/js/et2_widget_timegrid.ts | 9 +++------ calendar/templates/mobile/view.xet | 1 - 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/calendar/js/et2_widget_timegrid.ts b/calendar/js/et2_widget_timegrid.ts index a26990a5da..a8bad17e2f 100644 --- a/calendar/js/et2_widget_timegrid.ts +++ b/calendar/js/et2_widget_timegrid.ts @@ -698,17 +698,14 @@ export class et2_calendar_timegrid extends et2_calendar_view implements et2_IDet { var old_value = this.options.disabled; this.disabled = disabled; - let style = window.getComputedStyle(this.div.get(0)); - if (style.display !== 'none' && style.display !== '') - { - this.div.get(0).classList.toggle("hideme", disabled); - } + + this.div.get(0).classList.toggle("hideme", disabled); if(disabled) { this.loader.show(); } - else if (old_value !== disabled) + else if(old_value !== disabled) { // Scroll to start of day - stops jumping in FF // For some reason on Chrome & FF this doesn't quite get the day start diff --git a/calendar/templates/mobile/view.xet b/calendar/templates/mobile/view.xet index 213c0a1fe5..daa706e038 100644 --- a/calendar/templates/mobile/view.xet +++ b/calendar/templates/mobile/view.xet @@ -23,7 +23,6 @@ Egroupware