From 4f07a74e695dc627beb313b435a2d34fb204192d Mon Sep 17 00:00:00 2001 From: root Date: Thu, 20 Oct 2011 12:27:34 +0200 Subject: [PATCH] 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