Calendar: Remove drag to create event placeholder when edit dialog is opened

This commit is contained in:
nathan 2021-12-08 13:41:35 -07:00
parent 4c2e5ba853
commit d6cca90dbf

View File

@ -2073,6 +2073,11 @@ export class CalendarApp extends EgwApp
{
if(this.egw.preference('new_event_dialog', 'calendar') === 'edit')
{
// We lose control after this, so remove the placeholder now
if(event && event.destroy)
{
event.destroy();
}
// Set this to open the add template in a popup
//options.template = 'calendar.add';
return this.egw.open(null, 'calendar', 'edit', options, '_blank', 'calendar');