Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only clicking on an event and not on blank day #85

Open
famous76 opened this issue Apr 12, 2018 · 1 comment
Open

Only clicking on an event and not on blank day #85

famous76 opened this issue Apr 12, 2018 · 1 comment

Comments

@famous76
Copy link

Hi !
This calendar is very nice.

I'm searching for only clicking on an event (.monthly-day .monthly-event-indicator) and not on a blank day. It seems to me useless to click on a blank day and seeing : No Events.

I'm pretty sure I have to change something here

// Click A Day
	$(document.body).on("click touchstart", parent + " .monthly-day", function (event) {
// If events, show events list

But i tried everything, nothing is working.
Could you help me please ?

Thank you very much !

@jay00472
Copy link

add below code on your click event method.
var eventExist = $(this).find('.monthly-indicator-wrap').html(); if(eventExist==''){ return false; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants