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.
Some whitespace cleanup makes it tricker to spot the actual change, which is here: https://github.com/revdancatt/upcoming-www/commit/195ebd6f235d8173d516faa586f0ec85ad92a291
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, notedit.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.