Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Set end date #41

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Set end date #41

wants to merge 3 commits into from

Conversation

revdancatt
Copy link
Contributor

Some whitespace cleanup makes it tricker to spot the actual change, which is here: revdancatt@195ebd6

caledit

This sets the end date calendar to match the start date when the start date is set or updated. However, if the user edits the end date by hand then further updating the start date will not modify the end date. This is to keep a balance between helping the user, and not stomping over their manual selection.

This is to answer issues: #33 and #23

Note This is on add.jade only, not edit.jade as it's assumed we only want the helper when first picking the dates, after that we're modifying the users already entered data.

Linter insists that trailing whitespace should be removed. This isn’t
the important part, but it makes the _actual_ commit harder to spot.
When the start date is changed we set the end date to that of the start
date. But only if the user _hasn’t_ already set the end date, in which
case we don’t change it.
@CloCkWeRX
Copy link

Conflicts, any chance you could rebase it or just PR the specific commit, vs whitespace cleanup?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants