Based on one example:
select: function(start, end, allDay) {
var title = prompt('Event Title:');
if (title) {
end = new Date(start);
end.setHours(end.getHours() + 1);
calendar.fullCalendar('renderEvent',
{
title: title,
start: start,
end: end,
allDay: allDay
},
true
);
}
calendar.fullCalendar('unselect');
},
Before updating the question:
Something like this should work:
eventClick: function (calEvent, jsEvent, view) {
calEvent.end = new Date(calEvent.start);
calEvent.end.setHours(calEvent.start.getHours() + 1);
$('#calendar').fullCalendar('updateEvent', calEvent);
},