mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-26 07:49:28 +01:00
Gantt chart styling
- Include progress as text on left side of bar - Highlight weekends
This commit is contained in:
parent
2bc3ad43c0
commit
42547b8153
@ -736,4 +736,21 @@ $j(function() {
|
||||
}
|
||||
return scale.class;
|
||||
}
|
||||
|
||||
// Include progress text in the bar
|
||||
gantt.templates.progress_text = function(start, end, task) {
|
||||
return "<span>"+Math.round(task.progress*100)+ "% </span>";
|
||||
};
|
||||
|
||||
// Highlight weekends
|
||||
gantt.templates.scale_cell_class = function(date){
|
||||
if(date.getDay()==0||date.getDay()==6){
|
||||
return "weekend";
|
||||
}
|
||||
};
|
||||
gantt.templates.task_cell_class = function(item,date){
|
||||
if(date.getDay()==0||date.getDay()==6){
|
||||
return "weekend"
|
||||
}
|
||||
};
|
||||
});
|
Loading…
Reference in New Issue
Block a user