Calendar: Get calendar week view actions working from home portlet

This commit is contained in:
nathan 2023-03-14 09:37:56 -06:00
parent da839dcfca
commit 9036186568

View File

@ -1135,7 +1135,7 @@ export class et2_calendar_daycol extends et2_valueWidget implements et2_IDetache
minute: _ev.target.dataset.minute || 0,
owner: this.options.owner
};
app.calendar.add(options);
this.getInstanceManager().app_obj.calendar.add(options);
return false;
}
// Header, all day non-blocking
@ -1151,14 +1151,14 @@ export class et2_calendar_daycol extends et2_valueWidget implements et2_IDetache
non_blocking: true,
owner: this.options.owner
};
app.calendar.add(options);
this.getInstanceManager().app_obj.calendar.add(options);
return false;
}
}
// Day label
else if(this.title.is(_ev.target) || this.title.has(_ev.target).length)
{
app.calendar.update_state({view: 'day',date: this.date.toJSON()});
this.getInstanceManager().app_obj.calendar.update_state({view: 'day', date: this.date.toJSON()});
return false;
}