Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

$(function(){
        $('#frmRegister').submit(function(){
                trackEventWithGA('Account', 'New User Register', $('#frmRegister #email').val());
                trackPageWithGA("/register"); // For registration goal.
        });
        
        $('#frmLogin').validate({
                loginEmail: {
                        required: true,
                        email: true
                },
                loginPassword: {
                        required: true,
                        minlength: 6,
                        maxlength: 20
                }
        });
        
        $("#frmRegister").validate({
                rules: {
                        email: {
                                required: true,
                                email: true
                        },
                        txtPassword: {
                                required: true,
                                minlength: 6,
                                maxlength: 20
                        }
                }
        });
});