From 4f07a74e695dc627beb313b435a2d34fb204192d Mon Sep 17 00:00:00 2001 From: root Date: Thu, 20 Oct 2011 12:27:34 +0200 Subject: [PATCH 1/3] Added an option to link events by an extra property --- src/common/View.js | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/src/common/View.js b/src/common/View.js index e245acf..7297a48 100644 --- a/src/common/View.js +++ b/src/common/View.js @@ -106,6 +106,18 @@ function View(element, calendar, viewName) { } + // returns all events with a matching propery value + function eventsByProp(property, value) + { + var id, i, len, events = []; + for(id in eventsByID) + for(i=0, len=eventsByID[id].length; i Date: Thu, 20 Oct 2011 12:27:34 +0200 Subject: [PATCH 2/3] Added an option to link events by an extra property --- src/common/View.js | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/src/common/View.js b/src/common/View.js index e245acf..7297a48 100644 --- a/src/common/View.js +++ b/src/common/View.js @@ -106,6 +106,18 @@ function View(element, calendar, viewName) { } + // returns all events with a matching propery value + function eventsByProp(property, value) + { + var id, i, len, events = []; + for(id in eventsByID) + for(i=0, len=eventsByID[id].length; i Date: Fri, 21 Oct 2011 11:40:29 +0200 Subject: [PATCH 3/3] Added dayRender trigger Thanks to manchev for code snippet. --- src/basic/BasicView.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/basic/BasicView.js b/src/basic/BasicView.js index 9e08f6d..24905c2 100644 --- a/src/basic/BasicView.js +++ b/src/basic/BasicView.js @@ -212,6 +212,7 @@ function BasicView(element, calendar, viewName) { cell.removeClass(tm + '-state-highlight fc-today'); } cell.find('div.fc-day-number').text(date.getDate()); + trigger('dayRender', t, date, cell); if (dowDirty) { setDayID(cell, date); }