Gantt callback: default to node id as callback arg

This commit is contained in:
Keenan Tullis
2019-12-10 15:25:28 -05:00
parent 08cbc0f187
commit c7ec8190fb

View File

@@ -488,6 +488,11 @@ const setClickFun = function(id, functionName, functionArgs) {
}
}
/* if no arguments passed into callback, default to passing in id */
if (argList.length === 0) {
argList.push(id);
}
let rawTask = findTaskById(id);
if (typeof rawTask !== 'undefined') {
pushFun(id, () => {