* [perf story #59018] Set today marker for initGantt for gantt wg.
This commit is contained in:
@@ -462,6 +462,15 @@ function initGantt()
|
||||
]};
|
||||
|
||||
gantt.locale.labels = ganttFields;
|
||||
|
||||
let date2Str = gantt.date.date_to_str(gantt.config.task_date);
|
||||
let today = new Date();
|
||||
gantt.addMarker({
|
||||
start_date: today,
|
||||
css: "today",
|
||||
text: ganttLang.today,
|
||||
title: ganttLang.today + ": " + date2Str(today)
|
||||
});
|
||||
}
|
||||
|
||||
$(function()
|
||||
|
||||
Reference in New Issue
Block a user