Hi Team,
I wanted to get the recurring parameters in “onEventSave” function, was there a way to do that? Please refer my bellow codes:
scheduler.attachEvent("onEventSave",function(id,ev){
scheduler.isCollision(ev.rec_type, ev.event_length);
return true;
});
In above codes, I never got rec_type and event_length which I configured in light box, so how could I do to get they?
Best wishes,
Judo520
rec_type value must already present in the “ev” object ( if you get object by ID - it may not contain it, because it retrieves original values of object )
event_length will be set only during saving (“onEventChanged”)
You can try to add the next code to resolve the issue
scheduler.attachEvent("onEventSave",function(id,ev){
scheduler._roll_back_dates(ev); //can be added
scheduler.isCollision(ev.rec_type, ev.event_length);
return true;
});