Calendar: Fix update if hidden for more than one user's calendar in week view

This commit is contained in:
nathangray 2021-02-18 13:45:50 -07:00
parent c5dc12f6ae
commit 60450ce640
2 changed files with 8 additions and 4 deletions

View File

@ -312,8 +312,10 @@ var et2_calendar_daycol = /** @class */ (function (_super) {
// 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));
.off('show.' + CalendarApp._daywise_cache_id(this.options.date, this.options.owner))
.one('show.' + CalendarApp._daywise_cache_id(this.options.date, this.options.owner), function () {
this._update_events(events);
}.bind(this));
return;
}
if (!this.getParent().disabled)

View File

@ -410,8 +410,10 @@ export class et2_calendar_daycol extends et2_valueWidget implements et2_IDetache
// 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));
.off('show.'+CalendarApp._daywise_cache_id(this.options.date, this.options.owner))
.one('show.'+CalendarApp._daywise_cache_id(this.options.date, this.options.owner), function() {
this._update_events(events)
}.bind(this));
return;
}
if(!this.getParent().disabled)