fires when the id of a task is changed
gantt.attachEvent("onTaskIdChange", function(id,new_id){ //any custom logic here });