djstevenson / songs-to-the-siren

A blog about songs
MIT License
0 stars 0 forks source link

Disable form input button once clicked #353

Closed djstevenson closed 3 years ago

djstevenson commented 3 years ago

Disable form input button once clicked to prevent multiple form submissions.

Relates to #350

djstevenson commented 3 years ago

Oh, disabling the submit button in a #form-id.submit() hander doesn't work because this disables the button before submit, and therefore the back-end doesn't know which button was hit! Unless we add etra form data, etc.

djstevenson commented 3 years ago

Not bothering with this, it's really not an issue, and the recommended solution is borked because you don't get info on which button is clicked.

It's surely solvable, but it's not worth the effort.