Am I blind or is there no onEventDelete? I see onBeforeEventDelete, but that is not what I want. I want to know after the the event has been deleted so I can save the change.
Hello,
I believe you can use onBeforeEventDelete as well. If according to your application logic you don’t plan to block event deletion then you can start saving changes and then return true.
scheduler.attachEvent("onBeforeEventDelete", function(event_id,event_object){
if(...) { // custom logic to decide whether you should delete the event or block deletion
return false; // event won't be deleted
}
else {
// custom code to save changes
return true; // event will be deleted
}
});
We will consider adding such an event in the upcoming version, thank you for your feedback.
Best regards,
Ilya