fires when a branch has been closed
gantt.attachEvent("onTaskClosed", function(id) { alert(`You've closed a branch with id=${id}`); });