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.

Revisions

  1. Johnathan created this gist Jul 6, 2012.
    16 changes: 16 additions & 0 deletions gistfile1.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    $( '#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 );
    }
    });
    } );