In a few places in my app, users sometimes accidentally submit a form more than once. I'd like to disallow this. I'm tempted to simply put this app-wide:
$("form").submit ->
TextInput.disable_submit $(this)
Is this the most comprehensive and safe way to go about this?