forked from extern/egroupware
Fix clicking all day non-blocking section under day title went to day view instead of creating a new event
This commit is contained in:
parent
a6a3dc5250
commit
0b09f5e31e
@ -998,7 +998,9 @@ var et2_calendar_daycol = (function(){ "use strict"; return et2_valueWidget.exte
|
||||
click: function(_ev)
|
||||
{
|
||||
// Click on the title
|
||||
if ($j(_ev.target).hasClass('calendar_calAddEvent') && !_ev.target.dataset.whole_day)
|
||||
if ($j(_ev.target).hasClass('calendar_calAddEvent'))
|
||||
{
|
||||
if(!_ev.target.dataset.whole_day)
|
||||
{
|
||||
// Default handler to open a new event at the selected time
|
||||
var options = {
|
||||
@ -1013,13 +1015,7 @@ var et2_calendar_daycol = (function(){ "use strict"; return et2_valueWidget.exte
|
||||
this.egw().open(null, 'calendar', 'add', options, '_blank');
|
||||
return false;
|
||||
}
|
||||
// Day label
|
||||
else if(this.title.is(_ev.target) || this.title.has(_ev.target))
|
||||
{
|
||||
app.calendar.update_state({view: 'day',date: this.date.toJSON()});
|
||||
return false;
|
||||
}
|
||||
// Header, but not the hidden event indicators that are in there
|
||||
// Header, all day non-blocking
|
||||
else if (this.header.has(_ev.target).length && !$j('.hiddenEventBefore',this.header).has(_ev.target).length ||
|
||||
this.header.is(_ev.target)
|
||||
)
|
||||
@ -1033,6 +1029,14 @@ var et2_calendar_daycol = (function(){ "use strict"; return et2_valueWidget.exte
|
||||
} , '_blank');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
// Day label
|
||||
else if(this.title.is(_ev.target) || this.title.has(_ev.target))
|
||||
{
|
||||
app.calendar.update_state({view: 'day',date: this.date.toJSON()});
|
||||
return false;
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user