Preventing double form submissions with Parsley form validation

Thanks to Jon Leigh for this snippet!  If you use Parsley form validation, a reliable form validation library, here's an easy way to prevent double submissions of forms.  This disables the form submission button only once the form passes Parsley's form validation. I've implemented this in a few different places and it works flawlessly! …