EfficiencyJunky / BikeLapse

A webapp built with leaflet.js and mapbox meant to make it easy to catalog bike rides that have been recorded with the DistanceLapse Video Creation System and Strava
4 stars 0 forks source link

Add event listener to all form inputs and disable "export" buttons if changes are made #18

Closed EfficiencyJunky closed 4 years ago

EfficiencyJunky commented 4 years ago

We want to avoid a situation where someone makes a change to the form inputs and then tries to export a file without pressing the "update" button first

So we need an event listener to all form inputs that resets a flag if the Update button hasn't been pushed and that gets set once the update button is pushed

The flag will also enable/disable the export button

EfficiencyJunky commented 4 years ago

issue resolved with commit: https://github.com/EfficiencyJunky/BikeLapse/commit/4b2146279ba64ea37ddc10d1369e272d72f298ef