{"action":"created","issue":{"url":"https://api.github.com/repos/kylestetz/CLNDR/issues/166","labels_url":"https://api.github.com/repos/kylestetz/CLNDR/issues/166/labels{/name}","comments_url":"https://api.github.com/repos/kylestetz/CLNDR/issues/166/comments","events_url":"https://api.github.com/repos/kylestetz/CLNDR/issues/166/events","html_url":"https://github.com/kylestetz/CLNDR/issues/166","id":69690196,"number":166,"title":"Link to URL when event is clicked (asp.net)","user":{"login":"franzxzxzx","id":12040681,"avatar_url":"https://avatars.githubusercontent.com/u/12040681?v=3","gravatar_id":"","url":"https://api.github.com/users/franzxzxzx","html_url":"https://github.com/franzxzxzx","followers_url":"https://api.github.com/users/franzxzxzx/followers","following_url":"https://api.github.com/users/franzxzxzx/following{/other_user}","gists_url":"https://api.github.com/users/franzxzxzx/gists{/gist_id}","starred_url":"https://api.github.com/users/franzxzxzx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/franzxzxzx/subscriptions","organizations_url":"https://api.github.com/users/franzxzxzx/orgs","repos_url":"https://api.github.com/users/franzxzxzx/repos","events_url":"https://api.github.com/users/franzxzxzx/events{/privacy}","received_events_url":"https://api.github.com/users/franzxzxzx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-20T21:55:05Z","updated_at":"2015-04-23T21:42:51Z","closed_at":null,"body":"<p>I want my events to go to a specified URL when they are clicked.\r\nHere is what I have:</p>\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n$(document).ready(function () {\r\n\r\n\r\n    $('#calendar').clndr({\r\n        template: $('#calendar-template').html(),\r\n        events: [ \r\n            { date: '2015-04-09', title: 'CLNDR GitHub Page Finished', url: 'http://www.google.com' \r\n\r\n             },\r\n             { date: '2015-04-19', title: 'CLNDR GitHub Page Finished', url: 'http://github.com/kylestetz/CLNDR'\r\n\r\n             },\r\n             { date: '2015-04-25', title: 'CLNDR GitHub Page Finished', url: 'http://github.com/kylestetz/CLNDR',\r\n\r\n             }\r\n                ],\r\n\r\n        clickEvents: {\r\n            click: function (target) {\r\n                window.location.href=\"target.events[0].url\"; (added this line but it doesn't work properly)\r\n                console.log(target);\r\n            },\r\n            onMonthChange: function (month) {\r\n                console.log('you just went to ' + month.format('MMMM, YYYY'));\r\n            }\r\n        },\r\n        doneRendering: function () {\r\n            console.log('this would be a fine place to attach custom event handlers.');\r\n        }\r\n    }); });\r\n\r\n\r\n\r\n\r\nWhy it is not working properly? Thank you in advance!\r\n"},"comment":{"url":"https://api.github.com/repos/kylestetz/CLNDR/issues/comments/95727699","html_url":"https://github.com/kylestetz/CLNDR/issues/166#issuecomment-95727699","issue_url":"https://api.github.com/repos/kylestetz/CLNDR/issues/166","id":95727699,"user":{"login":"franzxzxzx","id":12040681,"avatar_url":"https://avatars.githubusercontent.com/u/12040681?v=3","gravatar_id":"","url":"https://api.github.com/users/franzxzxzx","html_url":"https://github.com/franzxzxzx","followers_url":"https://api.github.com/users/franzxzxzx/followers","following_url":"https://api.github.com/users/franzxzxzx/following{/other_user}","gists_url":"https://api.github.com/users/franzxzxzx/gists{/gist_id}","starred_url":"https://api.github.com/users/franzxzxzx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/franzxzxzx/subscriptions","organizations_url":"https://api.github.com/users/franzxzxzx/orgs","repos_url":"https://api.github.com/users/franzxzxzx/repos","events_url":"https://api.github.com/users/franzxzxzx/events{/privacy}","received_events_url":"https://api.github.com/users/franzxzxzx/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T21:42:51Z","updated_at":"2015-04-23T21:42:51Z","body":"# Thanks for your help! I appreciate that :)\r\nI've already sorted it out. I hope this helps you too :)\r\n\r\n`clickEvents: {\r\n            click: function (target) {\r\n                console.log(target);\r\n                var output = \"\";\r\n                for (i = 0; i < target.events.length; i++) {\r\n                    output += \" -> \" + target.events[i].title + \" <br /> \";\r\n                }\r\n                //alert(\"Events for day: \" + target.date.toString() + \" \\n \" + output);\r\n                document.getElementById(\"tab3\").innerHTML = \"Events for day: \" + target.date.toString() + \" <br /> \" + output;  `"}}