From 8d9f5ecfdb37a52c8ce60fb0fc06c6e1a3b0c45b Mon Sep 17 00:00:00 2001 From: Felician Nemeth Date: Fri, 28 Aug 2015 15:43:46 +0200 Subject: [PATCH] Generate UID for VCALENDAR entries --- ouical.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ouical.js b/ouical.js index 3a13b64..f8c9683 100644 --- a/ouical.js +++ b/ouical.js @@ -78,6 +78,7 @@ 'SUMMARY:' + (event.title || ''), 'DESCRIPTION:' + (event.description || ''), 'LOCATION:' + (event.address || ''), + 'UID:' + (event.id || '') + '-' + document.URL, 'END:VEVENT', 'END:VCALENDAR'].join('\n')); @@ -165,8 +166,9 @@ return; } + params.data.id = params.data.id || getOrGenerateCalendarId(params); return generateMarkup(generateCalendars(params.data), getClass(params), - getOrGenerateCalendarId(params)); + params.data.id); }; })(this);