Hi,
I want to make recurring events enabled by default with no end date
scheduler.attachEvent(“onEventCreated”, function(id) {
var ev = this.getEvent(id);
ev.event_length = (ev.end_date - ev.start_date)/1000; // length of event in seconds
ev.rec_type = ev.rec_pattern = “week_1___1,2,3,4,5#no”; //repeat each working day
return true;
});
After the event is created it repeats only one time like non-recurring one and in database ‘end_date’ is normal not like it should be: 9999-02-01 00:00:00.
I have to edit this event one more time to ensure that everything is correct.
A little help would be appreciated.