mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-16 03:30:49 +01:00
Calendar: Fix drag and drop across weeks
Couldn't drop an event from one week to another
This commit is contained in:
parent
25207003df
commit
3b8b902194
@ -362,15 +362,16 @@ export class et2_calendar_timegrid extends et2_calendar_view implements et2_IDet
|
||||
// Cancel drag to create, we're dragging an existing event
|
||||
timegrid.drag_create.start = null;
|
||||
timegrid._drag_create_end();
|
||||
timegrid.div.on("dragover.timegrid", (e) =>
|
||||
{
|
||||
timegrid._get_time_from_position(e.clientX, e.clientY);
|
||||
})
|
||||
timegrid._get_time_from_position(event.clientX, event.clientY);
|
||||
})
|
||||
.on("dragend", () =>
|
||||
{
|
||||
timegrid.div.off("drag.timegrid");
|
||||
})
|
||||
.on('dragover', function(event)
|
||||
{
|
||||
timegrid._get_time_from_position(event.clientX, event.clientY);
|
||||
})
|
||||
.on('mousemove', function(event)
|
||||
{
|
||||
timegrid._get_time_from_position(event.clientX, event.clientY);
|
||||
|
Loading…
Reference in New Issue
Block a user