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

removed max-date constraint on date picker for rollover start date #1853

Merged
merged 3 commits into from
Jul 8, 2016
Merged

removed max-date constraint on date picker for rollover start date #1853

merged 3 commits into from
Jul 8, 2016

Conversation

stopfstedt
Copy link
Member

@stopfstedt stopfstedt commented Jul 7, 2016

changing the academic year selection will result in a max date recalculation. however, the date picker does not pick up on that, it will continue to operate on the originally set min/max date ranges.

the same applies to the min date of that range, the recalculated date does not get applied in the date picker. the base-line requirement is that the rollover date cannot come before the course's original start date, which can be enforced. updated the date picker component to take the course start date as min date instead.

@@ -51,8 +51,7 @@
{{pikaday-input
size=10
value=startDate
maxDate=maxDate
minDate=minDate
minDate=startDate
Copy link
Member

@jrjohnson jrjohnson Jul 8, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be course.startDate

Otherwise it will change as the startDate is changed so if you pick July 5th you wont be able to go back to July 4th.

@jrjohnson jrjohnson merged commit b702b3f into ilios:master Jul 8, 2016
@stopfstedt stopfstedt deleted the new-wave-country_country-new-wave branch August 19, 2016 16:31
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