[Timeline] Allow drops from tree

Don't assume that all drops will be dropped swimlanes.
This commit is contained in:
Victor Woeltjen 2016-03-22 12:24:08 -07:00
parent 31d8c9a48f
commit dea6554e04

View File

@ -82,12 +82,17 @@ define(
),
draggedSwimlane = dndService.getData(
SwimlaneDragConstants.TIMELINE_SWIMLANE_DRAG_TYPE
);
),
droppedObject = draggedSwimlane ?
draggedSwimlane.domainObject :
dndService.getData(
SwimlaneDragConstants.MCT_EXTENDED_DRAG_TYPE
);
if (id) {
event.stopPropagation();
// Delegate the drop to the swimlane itself
swimlane.drop(id, (draggedSwimlane || {}).domainObject);
swimlane.drop(id, droppedObject);
}
// Clear the swimlane highlights