I'm trying to modify CGCalendar just a little bit but I need some help with coding.
Among others, I have two categories: "closed" and "in_progress". If an event belongs to one of those categories, users must not be able to click on the event to see details. I need to "kill" that link. And my efforts were embarrassing...
Basically, it could be something like this:
Code: Select all
eventClick: function(event, jsEvent, view) {
if( category != 'closed' or category != 'in_progress' ) {
window.location = event.none;
}
else {
window.location = event.detail_url;
}
}
Thank you in advance for any kind of help!
Best regards,
Jakovbak