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

Fixed bug with events displaying on the wrong month when clicking the next or previous month buttons rapidly #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pmachapman
Copy link

If Monthly.js is set up to load its events from a URL, and the user rapidly clicks the next or previous month buttons, then the events from multiple months will sometimes display all together on one month. This is especially noticeable if the server is slow at generating the XML/JSON, or if the user has a slow connection.

This change fixes the bug by only adding events that are for the current month and year.

@oansquer
Copy link

+1 I have the same problem and i have done the same fix.

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

Successfully merging this pull request may close these issues.

2 participants