Get the All Day event into the corrcet resource column

This commit is contained in:
sean kenny
2014-08-09 14:31:05 +01:00
parent f426d9db56
commit 98568e51e5
2 changed files with 7 additions and 3 deletions
+5 -1
View File
@@ -201,9 +201,13 @@ function DayEventRenderer() {
// Generate an array of segments for a single event.
// A "segment" is the same data structure that View.rangeToSegments produces,
// with the addition of the `event` property being set to reference the original event.
function buildSegmentsForEvent(event) { //, col) {
function buildSegmentsForEvent(event, resourceCol) {
var segments = rangeToSegments(event.start, getEventEnd(event));
for (var i=0; i<segments.length; i++) {
if (typeof resourceCol !== 'undefined'){
segments[i].leftCol = resourceCol;
segments[i].rightCol = resourceCol;
}
segments[i].event = event;
}
return segments;
+2 -2
View File
@@ -467,7 +467,7 @@ function ResourceView(element, calendar, viewName) {
var classNames = [ // added
'fc-col' + col,
resource.className instanceof Array ? resource.className.join(' ') : resource.className,
resource.className,
headerClass
];
@@ -510,7 +510,7 @@ function ResourceView(element, calendar, viewName) {
classNames = [
'fc-col' + col,
resource.className instanceof Array ? resource.className.join(' ') : resource.className,
resource.className,
contentClass
];
if (+date == +today) {