Skip to content

Commit

Permalink
Merge branch 'resourceView-2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
zvictor committed Dec 11, 2014
2 parents 9ea0a25 + 2517901 commit e17b646
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
10 changes: 8 additions & 2 deletions dist/fullcalendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ function Calendar(element, instanceOptions) {
};


// Given an event's allDay status and start date, return swhat its fallback end date should be.
// Given an event's allDay status and start date, return what its fallback end date should be.
t.getDefaultEventEnd = function(allDay, start) { // TODO: rename to computeDefaultEventEnd
var end = start.clone();

Expand Down Expand Up @@ -857,7 +857,13 @@ function Calendar(element, instanceOptions) {
freezeContentHeight();
currentView.destroyEvents(); // no performance cost if never rendered
currentView.renderEvents($.grep(events, function(event) {
return event.end > currentView.start && event.start < currentView.end;
var end = event.end;

if(!end) {
end = currentView.calendar.getEventEnd(event);
}

return end > currentView.start && event.start < currentView.end;
}));
unfreezeContentHeight();
}
Expand Down
Loading

0 comments on commit e17b646

Please sign in to comment.