Hi,
I have code that use addmarkedTimespan without keeping the return value and I am using the scheduler live_updates. When I receive a onEventDeleted, I would like to call deleteMarkedTimespan with info from the event that just got deleted, but it doesn’t seem to remove the blocked section. Here is a snippet of the code:
scheduler.addMarkedTimespan({
start_date: event.start_date,
end_date: event.end_date,
css: "time_busy",
type: "dhx_time_block",
sections: {
timeline: [event.employee_id],
unit: [event.employee_id]
}
});
scheduler.attachEvent("onEventDeleted", function(id, ev){
scheduler.deleteMarkedTimespan({
start_date: ev.start_date,
end_date: ev.end_date,
css: "time_busy",
type: "dhx_time_block",
sections: {
timeline: ev.employee_id,
unit: ev.employee_id
}
});
});
any help would be appreciate!
thanks