|
|
|
@ -639,6 +639,24 @@ for (var i = 0; i < radios.length; i++) {
|
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
// end Zoom Scale function
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// GANTT PERFORMANCE CONFIG RECOMMENDATION
|
|
|
|
|
gantt.config.scales = [ |
|
|
|
|
{unit: "month", step: 1, format: "%F, %Y"}, |
|
|
|
|
{unit: "week", step: 1, format: function (date) { |
|
|
|
|
return "Week #" + gantt.date.getWeek(date); |
|
|
|
|
}}, |
|
|
|
|
{unit: "day", step: 1, format: "%D", css: function(date) { |
|
|
|
|
if(!gantt.isWorkTime({ date: date, unit: "day"})){ |
|
|
|
|
return "weekend" |
|
|
|
|
} |
|
|
|
|
}} |
|
|
|
|
]; |
|
|
|
|
gantt.config.show_task_cells = false; |
|
|
|
|
gantt.config.static_background = true; |
|
|
|
|
gantt.config.branch_loading = true; |
|
|
|
|
gantt.config.smart_scales = true; |
|
|
|
|
|
|
|
|
|
// gantt initialization
|
|
|
|
|
$(document).ready(function () { |
|
|
|
|