Hi,
I'm trying to change the background of the "k-event-drag-hint" div when the user is moving an event on top of another.
function onEventMoved(e) {
if (roomIsOccupied(e.start, e.end, e.event, e.resources)) {
$(".k-event-drag-hint").find('div').css('background', 'blue');
e.preventDefault();
return;
}
$(".k-event-drag-hint").find('div').css('background', 'red');
}
When I randomly move an event I can see the green background BUT when roomIsOccupied returns true, my code seems to have no effect (background is not red).
>> If i remove the e.preventDefault() then the background turns to blue.
Any idea on how i can fix this issue?
Thx
Seb