Fix an issue with the drag and drop functionality on the planner page.
This commit is contained in:
@@ -270,10 +270,10 @@ function dragOver(event) {
|
|||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
function dropBox(event, newProgress) {
|
function dropBox(event, newProgress) {
|
||||||
if ($(event.target).hasClass("swimlane")) {
|
var targetSwimLane = $(event.target).hasClass("swimlane") ? event.target : $(event.target).parents(".swimlane")[0];
|
||||||
if (dragged.parentElement != event.target && event.target != dragged) {
|
var draggedSwimLane = $(dragged).parents(".swimlane")[0];
|
||||||
updatePlanRecordProgress(newProgress);
|
if (targetSwimLane != draggedSwimLane) {
|
||||||
}
|
updatePlanRecordProgress(newProgress);
|
||||||
}
|
}
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user