Hi There,
I’m using the timeline view, with the y-unit populate with users.
I’ve implemented a custom lightbox. I’m having trouble populating the lightbox with event data if an event already exists.
Also If i click to add a new event, it doesn’t default show who the event should be attached to.
Below is the showLightbox function
// Configure Lightbox
scheduler.showLightbox = function(id) {
var ev = scheduler.getEvent(id);
scheduler.startLightbox(id, html("my_form"));
$('#employees').empty();
$.each(sections, function(i) {
$('#employees').append($('<option>', {
value: sections[i].key,
text: sections[i].label
}));
});
$("#employees").selectize();
html("employees").value = ev.employee_id;
html("start_time").value = ev.start_time || "";
html("end_time").value = ev.end_time || "";
};
Any help would be greatly appreciated