From 10057217cb14bd923925c9f7eab2a7a4e2d654af Mon Sep 17 00:00:00 2001 From: abzicht Date: Sat, 9 Mar 2019 20:07:51 +0100 Subject: [PATCH] Fixed issue which only passed the first char of functionargs to the function by splitting the functionargs by commas --- src/diagrams/gantt/ganttDb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diagrams/gantt/ganttDb.js b/src/diagrams/gantt/ganttDb.js index 56b7ef003..0cc76dbf2 100644 --- a/src/diagrams/gantt/ganttDb.js +++ b/src/diagrams/gantt/ganttDb.js @@ -406,6 +406,7 @@ export const setClass = function (ids, className) { } const setClickFun = function (id, functionName, functionArgs) { + functionArgs = functionArgs.split(',') if (typeof functionName === 'undefined') { return } @@ -415,7 +416,6 @@ const setClickFun = function (id, functionName, functionArgs) { const elem = d3.select(element).select(`[id="${id}"]`) if (elem !== null) { elem.on('click', function () { - console.log('test') window[functionName](id, ...functionArgs) }) }