joshpelkey / cfbets

College football betting web app, built with django/bootstrap/jquery
Apache License 2.0
15 stars 8 forks source link

Submitting bet with date in the past requires refresh #57

Open joshpelkey opened 6 years ago

joshpelkey commented 6 years ago

If you try to submit a bet with a date in the past, the form comes back with an error as expected -- but then you also can't post a new bet with a valid date in the future. You have to refresh the whole page.

joshpelkey commented 5 years ago

This has to do with the javascript for submit using on and one. Probably remove the 'one' and just use 'on' and figure out when to disable the button.

This will also impact form submit for squares game (in dev)