fires after the user adds a task to the Gantt chart
gantt.attachEvent("onAfterTaskAdd", function(id,task){ //any custom logic here });