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

Prevent range selection containing blocked dates #13

Merged
merged 3 commits into from
Mar 18, 2017
Merged

Prevent range selection containing blocked dates #13

merged 3 commits into from
Mar 18, 2017

Conversation

alexcouret
Copy link
Contributor

I added a piece of code that is checking, when a start date and an end date is selected, that the period does not match the isDateBlocked() on one or more days.
If the period contains blocked dates, it'll set the startDate as the last focused date.

Tell me if you see something wrong in terms of code style/logic.

@alexcouret
Copy link
Contributor Author

@jirikolarik Hi, could you have a look please ? :)

@jirikolarik
Copy link
Member

Hi, thanks for PR, seems logical to me, merging ;)

@jirikolarik jirikolarik merged commit 0876f58 into werein:master Mar 18, 2017
@alexcouret alexcouret deleted the period-with-disabled-dates branch March 29, 2017 10:53
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.

None yet

2 participants