Subversion Repositories SmartDukaan

Rev

Rev 1829 | Rev 1838 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1829 Rev 1831
Line 3... Line 3...
3
$(document).ready(function(){
3
$(document).ready(function(){
4
	$('#frmProceedToPay').submit(function(){
4
	$('#frmProceedToPay').submit(function(){
5
		trackEventWithGA('Order', 'Proceed to Pay', "");
5
		trackEventWithGA('Order', 'Proceed to Pay', "");
6
		return true;
6
		return true;
7
	});
7
	});
8
 
-
 
9
	//For Registration Page
-
 
10
	$('#frmRegister #email').change(function(){
-
 
11
		$('#communicationEmail').val($(this).val());
-
 
12
	});
-
 
13
	
8
	
14
	$('#addAdrBtn').click(function(){
9
	$('#addAdrBtn').click(function(){
15
		$('#newShipAdr').show();
10
		$('#newShipAdr').show();
16
		scrollWin();
11
		scrollWin();
17
	});
12
	});
Line 63... Line 58...
63
    activeTab("catTab1");
58
    activeTab("catTab1");
64
    hideShowTabContent("multifacetedSearch", "show");
59
    hideShowTabContent("multifacetedSearch", "show");
65
    hideShowTabContent("browseContent", "show");
60
    hideShowTabContent("browseContent", "show");
66
    hideShowTabContent("otherTabContent", "hide");
61
    hideShowTabContent("otherTabContent", "hide");
67
  });
62
  });
68
	$('#frmLogin').validate({
-
 
69
		loginEmail: {
-
 
70
			required: true,
-
 
71
			email: true
-
 
72
		},
-
 
73
		loginPassword: {
-
 
74
			required: true,
-
 
75
			minlength: 6,
-
 
76
			maxlength: 20
-
 
77
		}
-
 
78
	});
-
 
79
  if(document.getElementById("frmRegister")){
-
 
80
	
63
 
81
    $("#frmRegister").validate({
-
 
82
      rules: {
-
 
83
        nameOfUser: "required",
-
 
84
        email: {
-
 
85
          required: true,
-
 
86
          email: true
-
 
87
        },
-
 
88
        txtPassword: {
-
 
89
          required: true,
-
 
90
          minlength: 6,
-
 
91
          maxlength: 20
-
 
92
        },
-
 
93
        confirmPassword: {
-
 
94
          required: true,
-
 
95
          minlength: 6,
-
 
96
          maxlength: 20,
-
 
97
          equalTo: "#txtPassword"
-
 
98
        },
-
 
99
        communicationEmail: {
-
 
100
          required: true,
-
 
101
          email: true
-
 
102
        },
-
 
103
        mobileNumber: {
-
 
104
          required: false,
-
 
105
          digits: true,
-
 
106
          minlength: 10,
-
 
107
          maxlength: 10
-
 
108
        },
-
 
109
        conditions: {
-
 
110
          required: true
-
 
111
        }
-
 
112
      }
-
 
113
    });
-
 
114
  }
-
 
115
  if(document.getElementById("txtDateOfBirth")){
64
  if(document.getElementById("txtDateOfBirth")){
116
    $("#txtDateOfBirth").datepicker({
65
    $("#txtDateOfBirth").datepicker({
117
      inline: true,
66
      inline: true,
118
      changeMonth: true,
67
      changeMonth: true,
119
      changeYear: true,
68
      changeYear: true,