forked from extern/egroupware
Fix calendar scrolls to the last event when editing with a hidden event after work hours.
This commit is contained in:
parent
32d562822b
commit
47c1839b01
@ -265,13 +265,14 @@ app.classes.calendar = AppJS.extend(
|
||||
)
|
||||
{
|
||||
var multiple_owner = typeof this.state.owner != 'string' &&
|
||||
this.state.owner.length < parseInt(this.egw.config('calview_no_consolidate','phpgwapi') || 5) ? true : false;
|
||||
this.state.owner.length > 1 &&
|
||||
this.state.owner.length < parseInt(this.egw.config('calview_no_consolidate','phpgwapi') || 5);
|
||||
for(var i = 0; i < this.state.owner.length; i++)
|
||||
{
|
||||
var owner = multiple_owner ? this.state.owner[i] : this.state.owner
|
||||
var new_cache_id = app.classes.calendar._daywise_cache_id(event.data.date, owner)
|
||||
var daywise = egw.dataGetUIDdata(new_cache_id);
|
||||
daywise = daywise ? daywise.data : [];
|
||||
daywise = daywise && daywise.data != null ? daywise.data : [];
|
||||
if(daywise.indexOf(_id) >= 0 && (_type === 'delete' ||
|
||||
// Make sure we only update the calendars of those actually in the event
|
||||
multiple_owner && typeof event.data.participants[owner] == 'undefined'))
|
||||
|
@ -541,8 +541,8 @@ var et2_calendar_daycol = et2_valueWidget.extend([et2_IDetachedDOM],
|
||||
{
|
||||
indicator = $j('<div class="hiddenEventAfter"></div>')
|
||||
.text(event.options.value.title)
|
||||
.attr('data-hidden_count', 1);
|
||||
this.div.append(indicator)
|
||||
.attr('data-hidden_count', 1)
|
||||
.appendTo(this.div)
|
||||
.on('click', function() {
|
||||
$j('.calendar_calEvent',day.div).last()[0].scrollIntoView(false);
|
||||
// Better re-run this to clean up
|
||||
|
Loading…
Reference in New Issue
Block a user