From: Michael J. Rubinsky Date: Sat, 7 Nov 2009 17:35:53 +0000 (-0500) Subject: Much better way of preventing timeObject category collisions. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=107285201f27fc45c4e12983e90e65426e4d597d;p=horde.git 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... --- 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]] = {}; }