Swarthmore / litterfall

Application and Scripts used for the Litterfall Project
0 stars 1 forks source link

Editing date to match another replaces #7

Closed sdlin15 closed 11 years ago

sdlin15 commented 11 years ago

Say we have a 6/10 observation already for a specific tree. Changing a previous observation's date to 6/10 deletes that original 6/10 observation.

mpitser commented 11 years ago

Validation using validateDate function in html/main.js now checks the date when: the user makes a change to the date before saving to the database

If the date is already listed, the field will be highlighted as invalid and an alert pops up to alert the user, and it disallows saving