Browse Source

Merge pull request 'adjust early finish' (#38) from dev-wahyu into staging

Reviewed-on: ordo/adw-gantt#38
pull/1/head
ibnu 1 year ago
parent
commit
4b02dfd8a8
  1. 3
      edit-mode/function/function.js

3
edit-mode/function/function.js

@ -377,6 +377,9 @@ function compareData(data){
allTasks.push(task);
}
allTasks.forEach((task, index) => {
if (task.progress > 0 && task.progress < 1) {
task.end_date = moment().format('YYYY-MM-DD HH:mm:ss');
}
if (task.start_date != data.data[index].start_date) {
gantt.getTask(task.id).start_date = task.start_date;
}

Loading…
Cancel
Save