mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-29 03:13:40 +01:00
Calendar: Fix events that were updated while calendar was not the active tab were misplaced at the beginning of the day
This commit is contained in:
parent
f67f0aa28c
commit
c42795cc9e
@ -308,6 +308,14 @@ var et2_calendar_daycol = /** @class */ (function (_super) {
|
||||
event_ids.splice(i--, 1);
|
||||
}
|
||||
}
|
||||
if (!this.div.is(":visible")) {
|
||||
// Not visible, defer the layout or it all winds up at the top
|
||||
// Cancel any existing listener & bind
|
||||
jQuery(this.getInstanceManager().DOMContainer.parentNode)
|
||||
.off('show.et2_daycol' + this.id)
|
||||
.one('show.et2_daycol' + this.id, function () { this._update_events(events); }.bind(this));
|
||||
return;
|
||||
}
|
||||
if (!this.getParent().disabled)
|
||||
this._update_events(events);
|
||||
};
|
||||
|
@ -404,6 +404,16 @@ export class et2_calendar_daycol extends et2_valueWidget implements et2_IDetache
|
||||
event_ids.splice(i--,1);
|
||||
}
|
||||
}
|
||||
|
||||
if(!this.div.is(":visible"))
|
||||
{
|
||||
// Not visible, defer the layout or it all winds up at the top
|
||||
// Cancel any existing listener & bind
|
||||
jQuery(this.getInstanceManager().DOMContainer.parentNode)
|
||||
.off('show.et2_daycol'+this.id)
|
||||
.one('show.et2_daycol'+this.id, function() {this._update_events(events)}.bind(this));
|
||||
return;
|
||||
}
|
||||
if(!this.getParent().disabled)
|
||||
this._update_events(events);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user