Hello everyone!
I have a very minor knowledge of Java and I have to modify something to meet my needs. It's a Calendar module in my CMS with various event categories. Front end users are able to click on any given date and see the details of the particular event. In my limited Java understanding, I have located the expression responsible for this action (maybe it's completely wrong, thou!):
Code:
eventClick: function(event, jsEvent, view) {
// woot, we can go to a detail view.
window.location = event.detail_url;
}
Now, I would like to exclude two categories - "closed" and "in_progress" - so such dates would no longer act like links to detail view. Again, this could make you laugh but it's just an illustration of what I'm trying to achieve:
Code:
eventClick: function(event, jsEvent, view) {
if( category != 'closed' or category != 'in_progress' ) {
window.location = event.none;
}
else {
window.location = event.detail_url;
}
}
I would appreciate any kind of help on this matter and I thank you in advance!
Best regards and have a nice day,
Vinkobak
برچسب:
نویسنده: آیلین رضوانی
تاريخ: شنبه
18 آذر
1396 ساعت: 4:01