I got a error when an event is created in sections with differents time steps.
To test it, you need to create an event in a section and later in another section with differents time steps.
The first events is showed perfectly.
The second event showed the time step of first section. The values of period times is wrong too.
I saw that the error happens on the first time that form is displayed in a new unit.
If you open it again in the same section, the period time is displayed correctly.
This test was done on sample 03/02-unit view. I added the method:
scheduler.attachEvent("onBeforeLightbox", function (event_id){
var ev = scheduler.getEvent(event_id);
if (ev.section_id == 1) {
scheduler.config.time_step = 30;
} else {
if (ev.section_id == 2) {
scheduler.config.time_step = 45;
} else {
scheduler.config.time_step = 60;
}
}
scheduler.resetLightbox();
return true;
});
If time of event doesn’t fit for the specified time step - you will have such result.
In above sample, the starting time is 9-45 - but there is no such value in the select (there are only 9-30 and 10-00), correct value can’t be selected and initial value (00:00) stays unchanged.
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan