Skip to content

Instantly share code, notes, and snippets.

@Johnathan
Created July 6, 2012 08:35
Show Gist options
  • Select an option

  • Save Johnathan/3058964 to your computer and use it in GitHub Desktop.

Select an option

Save Johnathan/3058964 to your computer and use it in GitHub Desktop.
$( '#signup' ).live( 'click', function( e ){
e.preventDefault();
planzai.showLoadingSign();
var form = $( 'form' );
$.post( form.attr( 'action' ), form.serialize(), function( data ){
if( typeof data == 'object' )
{
window.location = data.redirect;
}
else
{
planzai.hideLoadingSign();
$( '#planzai_modal_box' ).replaceWith( data );
}
});
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment