* [perf story #59018] Set today marker for initGantt for gantt wg.

This commit is contained in:
wangyidong
2024-07-15 10:04:18 +08:00
committed by 谢杞钰
parent c3b2bd8645
commit 20fd52fa32
+9
View File
@@ -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()