Skip to content

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

Open
pmachapman wants to merge 1 commit into
kthornbloom:masterfrom
pmachapman:master
Open

Fixed bug with events displaying on the wrong month when clicking the next or previous month buttons rapidly#48
pmachapman wants to merge 1 commit into
kthornbloom:masterfrom
pmachapman:master

Conversation

@pmachapman

Copy link
Copy Markdown

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
Copy Markdown

+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