| Issue 1247: | id for a single event in a recurrence events in the google calendar | |
| 1 person starred this issue and may be notified of changes. | Back to list |
I had a problem when tried to parse a single event from a recurrence.
I found that the id was not exactly that specified event.
So I made a change, and it worked as I expected.
<code>
events.push({
// id: entry['gCal$uid']['value'],
// edited by rico
id: entry['id']['$t'].split('/').reverse()[0],
title: entry['title']['$t'],
url: url,
start: start,
end: end,
allDay: allDay,
location: entry['gd$where'][0]['valueString'],
description: entry['content']['$t']
});
</code>
I needed this to hack the fullCalendar's behavior on opening the google event's page to my own page and proceed the detail from there.
<code>
eventClick: function(event) {
if (event.url) {
// window.open(event.url);
// edited by rico, to be redirected to the event detail's page
var cid = event.source.url.split('/')[5];
var eid = event.id;
window.location = "my-event-detail-page.html?"
+ 'cid=' + cid + '&eid=' + eid
return false;
}
}
</code>
I hope this would be useful for someone else.
Jan 14, 2012
#1
goldsky....@gmail.com
Aug 14, 2013
(No comment was entered for this change.)
Status:
Done
|
|
| ► Sign in to add a comment |