* Custom dnd rules for project kanban.

This commit is contained in:
Hao Sun
2021-12-06 11:30:11 +08:00
parent 50ad00b1c4
commit 18c0ef3210
+9
View File
@@ -81,6 +81,15 @@ function processKanbanData(key, programGroup)
return {id: kanbanId, columns: columns, lanes: lanes};
}
/** Define kanban d-n-d rules */
var projectDropRules =
{
waitProject: ['doingProject', 'closedProject'],
doingProject: ['closedProject'],
closedProject: ['doingProject'],
};
window.kanbanDropRules = {my: projectDropRules, other: projectDropRules};
/*
* Find drop columns
* @param {JQuery} $element Drag element