From 107285201f27fc45c4e12983e90e65426e4d597d Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Sat, 7 Nov 2009 12:35:53 -0500 Subject: [PATCH] Much better way of preventing timeObject category collisions. Now, the display code will have to be tweaked though, since this results in a new section to be added for each subgroup. (Example, all birthdays are grouped together under Contacts, then a second Contacts group is added for all anniversaries... --- kronolith/js/kronolith.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index d3e093e64..1c7a5cd20 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -757,7 +757,9 @@ KronolithCore = { } $H(Kronolith.conf.calendars.external).each(function(cal) { - api = cal.key.split('/'); + var api = []; + api[0] = cal.key.substring(0, cal.key.lastIndexOf('/')); + api[1] = cal.key.substring(cal.key.lastIndexOf('/') + 1); if (typeof ext[api[0]] == 'undefined') { ext[api[0]] = {}; } -- 2.11.0