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