mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:28:53 +01:00
Calendar: Fix hidden calendars in desktop and mobile view
This commit is contained in:
parent
7735c57031
commit
d464327074
@ -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
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user