how to remove the new event if inline event edit text is blank
10 years ago.
Hi guys.
I was wondering how to remove the new event created in the scheduler if inline event edit text is blank.
actually no eventEdit event is fired, so I can't check if newText is blank or not. it's the same if I click on empty timeRange and then press the esc key without typing anything.
here is my code:
function createAndEdit(start, end, resource) {
var e = new DayPilot.Event({
start: start,
end: end,
id: DayPilot.guid(),
resource: resource,
text: ""
});
dps.events.add(e);
dps.clearSelection();
dps.events.edit(e);
}
you can see the same behaviour in the demo counterpart at http://javascript.daypilot.org/demo/scheduler/eventinlineediting.html
thank you for all your responses.
DayPilot