This commit is contained in:
2026-02-28 14:48:24 +01:00
parent 20f502543a
commit f6ba7ebc36
15 changed files with 1030 additions and 129 deletions

View File

@@ -1426,8 +1426,8 @@ class Gantt {
}
}
if(s)
task.end=s.end;
if(s && this.options.sync_parent_end_with_children)
task.end=s.end;
task.has=this.get_all_dependent_tasks(task.id);
return task;
@@ -1666,7 +1666,8 @@ class Gantt {
date_format: 'YYYY-MM-DD',
popup_trigger: 'click',
custom_popup_html: null,
language: 'en'
language: 'en',
sync_parent_end_with_children: true
};
this.options = Object.assign({}, default_options, options);
}
@@ -2747,3 +2748,5 @@ function generate_id(task) {
return Gantt;
}());