Hi I’ve scheduler for all view modes i.e. month/week/day views loaded into our product.
scheduler.attachEvent("onBeforeDrag", function (id, mode, e){
console.log("here in before drag", e, id, mode)
dragged_event=scheduler.getEvent(id); //use it to get the object of the dragged event
if(scheduler.getState().dragged_event)
return false;
return true;
})
scheduler.attachEvent("onDragEnd", function(e, b, c){
//my save lightbox data code
});
scheduler.attachEvent("onClick", function (id, e){
//any custom logic here
return false;
});
My Entire calendar is loaded in an iframe
And I wrote custom form rather than using existing for lightbox. Whenever I dblclick an event on scheduler and open light box, it goes to this “onBeforeDrag” and “onDragEnd” event. Even thought, show lightbox shows the form, but data is going to this two events saving. How do I prevent this.
PS: Sorry misunderstood your event collision when first posted
Thank You
Sai