<script style="text/javascript">
function check(start, end, resource) {
var now = new DayPilot.Date();
// var today = now.getDatePart();
if (end.getTime() < now.getTime()) {
if (!(confirm('Are you sure that you want to create an event in the past?')) {
return;
}
}
dpc.timeRangeSelected(start, end, resource);
}
</script>
Comment posted by JC 15 years ago.
I am double clicking a free area. As such, there is no start or end
Comment posted by Dan Letecky [DayPilot] 15 years ago.
The double click event is handled by TimeRangeDoubleClick but otherwise it's the same. The start and end variables will hold the cell start and end, respectively.
This question is more than 1 month old and has been closed. Please create a new question if you have anything to add.