mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
Fix planner view got end date wrong when adding an event by clicking on a row.
This commit is contained in:
parent
98c18b04ec
commit
406c96defe
@ -1843,7 +1843,7 @@ var et2_calendar_planner = et2_valueWidget.extend([et2_IDetachedDOM, et2_IResize
|
|||||||
var row = $j(_ev.target).closest('.calendar_plannerRowWidget');
|
var row = $j(_ev.target).closest('.calendar_plannerRowWidget');
|
||||||
var data = row.length ? row[0].dataset : {};
|
var data = row.length ? row[0].dataset : {};
|
||||||
this.egw().open(null, 'calendar', 'add', jQuery.extend({
|
this.egw().open(null, 'calendar', 'add', jQuery.extend({
|
||||||
start: date.toJSON(),
|
date: date.toJSON(),
|
||||||
hour: date.getUTCHours(),
|
hour: date.getUTCHours(),
|
||||||
minute: date.getUTCMinutes()
|
minute: date.getUTCMinutes()
|
||||||
},data) , '_blank');
|
},data) , '_blank');
|
||||||
@ -1895,7 +1895,7 @@ var et2_calendar_planner = et2_valueWidget.extend([et2_IDetachedDOM, et2_IResize
|
|||||||
// Default handler to open a new event at the selected time
|
// Default handler to open a new event at the selected time
|
||||||
// TODO: Determine date / time more accurately from position
|
// TODO: Determine date / time more accurately from position
|
||||||
this.egw().open(null, 'calendar', 'add', {
|
this.egw().open(null, 'calendar', 'add', {
|
||||||
date: _ev.target.dataset.date || this.day_list[0],
|
date: _ev.target.dataset.date || this.options.start_date.toJSON(),
|
||||||
hour: _ev.target.dataset.hour || this.options.day_start,
|
hour: _ev.target.dataset.hour || this.options.day_start,
|
||||||
minute: _ev.target.dataset.minute || 0
|
minute: _ev.target.dataset.minute || 0
|
||||||
} , '_blank');
|
} , '_blank');
|
||||||
|
Loading…
Reference in New Issue
Block a user