@ -55,6 +55,11 @@ gantt.attachEvent("onBeforeTaskUpdate", function(id,new_item){
new_item['progress'] = progress;
});
gantt.attachEvent("onAfterTaskDrag", function(id, mode, e){
var task = gantt.getTask(id);
task.end_date = gantt.calculateEndDate(task);
gantt.updateTask(id);
gantt.attachEvent("onBeforeLinkAdd", function(id,link){
//any custom logic here