Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am fuzzpedal on github.
  • I am fuzzpedal (https://keybase.io/fuzzpedal) on keybase.
  • I have a public key whose fingerprint is 21B3 56C9 FC87 18F9 B4A6 8111 D056 5530 B3AA D4B1

To claim this, I am signing this object:

(function( $ ) {
$.fn.singlesubmit = function() {
return this.each(function() {
$(this).submit(function (e) {
if ($(this).data('submitted')) e.preventDefault();
$(this).data('submitted', true);
});
$(this).bind('singlesubmitreset', function () { $(this).data('submitted', false); })
});
};