I want the next funcionality:
When click on empty area(lightbox)
cancel event if date<Today
otherwise addEventNow
This works with this code:
[code]scheduler.attachEvent(“onEmptyClick”, function (date, e) {
if (date < Date.now()) return false;
var eventId = scheduler.addEventNow({
start_date: date
, end_date: date.addMinutes(15)
, text: ""
});
});[/code]
But when doble click, an empty event it’s created, even I handle double click event and cancel it.
scheduler.attachEvent("onDblClick", function (event_id, native_event_object) {
return false;
})