Hi,
I am using addMarkedTimespan to block 3 different elements (data from 3 different tables):
1.Holidays
var options = {
start_date: date_start,
end_date: date_end,
type: "dhx_time_block",
css: "holidays",
html: "holidays",
sections: {timeline: <?php echo $row['id_employee']; ?>}
};
scheduler.addMarkedTimespan(options);
- Intervals out of contract
scheduler.addMarkedTimespan({
start_date: date_start.setDate(date_start.getDate()+1),
end_date: date_end,
css: "small_lines_section",
type: "dhx_time_block"
html: "out of contract",
sections: {timeline: <?php echo $row['id_employee'] ?>}
});
- None working days
scheduler.addMarkedTimespan({
days: <?php echo $day_off_arr; ?>,
zones: "fullday",
css: "small_lines_section",
type: "dhx_time_block",
html: "none working",
sections: {timeline: <?php echo $row['id_employee']; ?>}
});
When the page is loading everything is ok. But after scrolling day by day, when I do the invert scroll none working days have disappeared…
I was thinking may be it’s because there is no date in the last code…
What do you think ? Is it a bug ? Due to my code ?
Thanks very much