Subversion Repositories SmartDukaan

Rev

Rev 1842 | Rev 2110 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1831 varun.gupt 1
$(function(){
2
	$('#frmRegister #email').change(function(){
3
		$('#communicationEmail').val($(this).val());
2072 varun.gupt 4
		$('#communicationEmailInstruction').show();
1831 varun.gupt 5
	});
6
 
1842 varun.gupt 7
	$('#frmRegister').submit(function(){
8
		trackEventWithGA('Account', 'New User Register', $('#frmRegister #email').val());
9
	});
10
 
1831 varun.gupt 11
	$("#datepicker").datepicker({
12
		changeMonth: true,
13
		changeYear: true
14
	});
15
 
16
	$('#frmLogin').validate({
17
		loginEmail: {
18
			required: true,
19
			email: true
20
		},
21
		loginPassword: {
22
			required: true,
23
			minlength: 6,
24
			maxlength: 20
25
		}
26
	});
27
 
28
	$("#frmRegister").validate({
29
		rules: {
30
			nameOfUser: "required",
31
			email: {
32
				required: true,
33
				email: true
34
			},
35
			txtPassword: {
36
				required: true,
37
				minlength: 6,
38
				maxlength: 20
39
			},
40
			confirmPassword: {
41
				required: true,
42
				minlength: 6,
43
				maxlength: 20,
44
				equalTo: "#txtPassword"
45
			},
46
			communicationEmail: {
47
				required: true,
48
				email: true
49
			},
50
			mobileNumber: {
51
				required: false,
52
				digits: true,
53
				minlength: 10,
54
				maxlength: 10
55
			},
56
			conditions: {
57
				required: true
58
			}
59
		}
60
	});
61
});