diff --git a/examples/external-dragging.html b/examples/external-dragging.html new file mode 100644 index 0000000..788735a --- /dev/null +++ b/examples/external-dragging.html @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + +
+ +
+

Draggable Events

+
My Event 1
+
My Event 2
+
My Event 3
+
My Event 4
+
My Event 5
+

+ +

+
+ +
+ +
+
+ + diff --git a/src/agenda.js b/src/agenda.js index e139af1..c2ed106 100644 --- a/src/agenda.js +++ b/src/agenda.js @@ -1173,7 +1173,7 @@ function Agenda(element, options, methods) { _renderDayOverlay(cell.row, cell.col, cell.row, cell.col); }else{ var d1 = cellDate(cell); - var d2 = addMinutes(cloneDate(d1), options.slotMinutes); //options.defaultEventMinutes); + var d2 = addMinutes(cloneDate(d1), options.defaultEventMinutes); renderSlotOverlay(d1, d2); } } @@ -1184,7 +1184,7 @@ function Agenda(element, options, methods) { var cell = hoverListener.stop(); clearOverlay(); if (cell) { - view.trigger('drop', view, cellDate(cell), cellIsAllDay(cell), ev, ui); + view.trigger('drop', ev.target, cellDate(cell), cellIsAllDay(cell), ev, ui); } }; diff --git a/src/grid.js b/src/grid.js index 9ba74b9..a561db6 100644 --- a/src/grid.js +++ b/src/grid.js @@ -580,7 +580,7 @@ function Grid(element, options, methods) { clearOverlay(); if (cell) { var d = cellDate(cell); - view.trigger('drop', view, d, true, ev, ui); + view.trigger('drop', ev.target, d, true, ev, ui); } };