I have a onBeforeEventDelete function like this:
function delete(event_id){
callAjaxDeleta(event_id);
}
My ajax functions is working and deleting from my db. But the event continue in the screen.
I tried to do something like this:
function delete(event_id){
callAjaxDeleta(event_id);
scheduler.deleteEvent(event_id);
}
But shows me this error:
Error Out of Strack Space : dhtmlxscheduller.js line 1
How to get this working ?
Thanks
Result of onBeforeDetele event counted as confirmation signal for deleting, so you need to have
function delete(event_id){
callAjaxDeleta(event_id);
return true; //confirm deleting
}