I get a javascript error when I load Lightbox as shown in the 2 screen shots below. Any thoughts or ideas on why this is and how to fix?
Hello,
If I understand correctly, you are trying to implement functionality like in this sample. The error doesn’t occur here.
docs.dhtmlx.com/scheduler/sampl … htbox.html
Please provide with the demo where we can reproduce your issue.
No @Polina, here is what is happening:
When I use the time bar out-of-the-box everything is fine:
scheduler.config.lightbox.sections = [
…,
//{ name:“time”, height:72, type:“time”, map_to:“auto”, time_format:[“%H:%i”] }
{ name:“time”, height:72, type:“time”, map_to:“auto” } // all is well
];
Yet when I try to customize the time bar with just start and end hours, I get the error as shown in the screen shot below:
scheduler.config.lightbox.sections = [
…,
{ name:“time”, height:72, type:“time”, map_to:“auto”, time_format:[“%H:%i”] } // all is NOT well
//{ name:“time”, height:72, type:“time”, map_to:“auto” }
];
Hi,
Please try avoiding using time_format option for now. Instead, you can tweak selects from onLightbox handler -
demo forum.dhtmlx.com/viewtopic.php? … 83#p147887 )
We’ll be investigating time_format issue, but for now, onLightbox seems to be good enough solution