Skip to content

Instantly share code, notes, and snippets.

@gdiggs gdiggs/gist:1028275
Created Jun 15, 2011

Embed
What would you like to do?
top down shit
$('form').live('submit', submitForm(e, $(this)) );
var submitForm = function(e, $form) {
e.preventDefault();
// make sure we want to do shit
doShit();
// stuff we do after doing shit
};
var doShit = function() {
$.ajax({
// some data
success: shitSuccess()
});
};
var shitSuccess = function() {
// fuck yeah
};
@modality

This comment has been minimized.

Copy link

commented Jun 15, 2011

this is some good shit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.