Merge pull request #1136 from keenanjt33/feature/921_callback_params

Gantt: Add support for callback with parameters
This commit is contained in:
Knut Sveidqvist
2020-01-01 00:29:00 -08:00
committed by GitHub
3 changed files with 80 additions and 0 deletions

View File

@@ -502,6 +502,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, () => {