Calendar: Fix hidden calendars in desktop and mobile view

This commit is contained in:
nathan 2023-07-26 08:40:47 -06:00
parent 7735c57031
commit d464327074
2 changed files with 3 additions and 7 deletions

View File

@ -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

View File

@ -23,7 +23,6 @@ Egroupware
<calendar-timegrid id="${row}"
onchange="var state = {}; if(widget.options.start_date == widget.options.end_date) state.view = 'day'; app.calendar.update_state(state);let s = widget.getInstanceManager().app_obj.calendar.state;let d = new Date(s.date);import(egw.link('/api/js/etemplate/lib/date.js')).then((m)=>{widget.getInstanceManager().widgetContainer.getWidgetById('header_dateIndicator').set_value((s.view == 'day'?date('d', d)+'-':'')+egw.lang(date('M',d))+'-'+date('Y',d));});"
onevent_change="app.calendar.event_change"
disabled="true"
>
</calendar-timegrid>
</row>