* [perf story #59018] Set gantt templates config for initGantt for gantt wg.
This commit is contained in:
@@ -471,6 +471,25 @@ function initGantt()
|
||||
text: ganttLang.today,
|
||||
title: ganttLang.today + ": " + date2Str(today)
|
||||
});
|
||||
|
||||
gantt.templates.grid_folder = function(item) { return "" };
|
||||
gantt.templates.grid_file = function(item) { return "" };
|
||||
gantt.templates.task_class = function(start, end, task){return 'pri-' + (task.pri || 0);};
|
||||
gantt.templates.rightside_text = function(start, end, task)
|
||||
{
|
||||
if(typeof task.owner_id == 'undefined') return;
|
||||
if(task.type == 'point') return "<span class='status-" + task.rawStatus + "'>" + task.status + '</span>';
|
||||
return getByIdForGantt(gantt.serverList('userList'), task.owner_id);
|
||||
};
|
||||
|
||||
gantt.templates.link_class = function(link)
|
||||
{
|
||||
let types = gantt.config.links;
|
||||
if(link.type == types.finish_to_start) return 'finish_to_start';
|
||||
if(link.type == types.start_to_start) return 'start_to_start';
|
||||
if(link.type == types.finish_to_finish) return 'finish_to_finish';
|
||||
if(link.type == types.start_to_finish) return 'start_to_finish';
|
||||
};
|
||||
}
|
||||
|
||||
$(function()
|
||||
|
||||
Reference in New Issue
Block a user