mirror of
https://github.com/wassname/fullcalendar.git
synced 2026-06-27 16:10:13 +08:00
Get the All Day event into the corrcet resource column
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user