baltimorecounty / BCPL-assets

Client side assets for the Baltimore County Public Library website
4 stars 0 forks source link

Create auto end date #657

Closed tmccoy529 closed 5 years ago

tmccoy529 commented 5 years ago

This adds functionality for the start date to never be greater then the end date only if the start date is selected to be beyond end date. The end date can still be selected to be prior to the start date and will display a red error to the users. This adds ng-change to the start date input field and upon that change validates the dates. If dates are invalid it changes the end date to (start date +1). This removes an annoying error for users while trying to change dates.