correctTaskWorkTime

recalculates the task duration in the work time

void correctTaskWorkTime(object task);

Parameters

taskobjectthe task's object

Example

gantt.attachEvent("onTaskDrag", function(id, mode, task, original){
    gantt.correctTaskWorkTime(task);
});

Details

The method requires the following configuration options to be specified:

gantt.config.work_time = true;
gantt.config.correct_work_time = true;
See also
Back to top