Subversion Repositories SmartDukaan

Rev

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

Rev 21830 Rev 21831
Line 1... Line 1...
1
function associateValidator(){
1
function associateValidator(){
2
    $('#form').bootstrapValidator({
2
    $('#form').bootstrapValidator({
3
        fields: {
3
        fields: {
4
        	registeredBusinessName: {
4
          registeredBusinessName: {
5
                validators: {
5
                validators: {
6
                    
6
                    
7
                        notEmpty: {
7
                        notEmpty: {
8
                        message: 'Please fill the BusinessName'
8
                        message: 'Please fill the BusinessName'
9
                    }
9
                    }
Line 42... Line 42...
42
                    notEmpty: {
42
                    notEmpty: {
43
                        message: 'Please select your state'
43
                        message: 'Please select your state'
44
                    }
44
                    }
45
                }
45
                }
46
            },
46
            },
-
 
47
       
47
Landline: {
48
       district:{
-
 
49
        validators: {
-
 
50
                    notEmpty: {
-
 
51
                        message: 'Please select your district.'
-
 
52
                    }
-
 
53
                }
-
 
54
            },
-
 
55
 
-
 
56
       
-
 
57
 
-
 
58
                mobile: {
48
                validators: {
59
                validators: {
49
                    stringLength: {
60
                    stringLength: {
50
                       max: 10,
61
                       max: 10,
51
                    },
62
                    },
52
                    notEmpty: {
63
                    notEmpty: {
-
 
64
                        message: 'Please fill your Mobile'
-
 
65
                    },
-
 
66
             
-
 
67
                    }
-
 
68
                },
-
 
69
 
-
 
70
                stdcode: {
-
 
71
                validators: {
-
 
72
                   
-
 
73
                    notEmpty: {
53
                        message: 'Pleasefill your phone number'
74
                        message: 'Pleasefill your phone number'
54
                    },
75
                    },
55
                   
76
                   
56
                    }
77
                    }
57
                },
78
                },
58
 
79
 
-
 
80
 
59
                mobile: {
81
                telephone: {
60
                validators: {
82
                validators: {
61
                    stringLength: {
-
 
62
                       max: 10,
-
 
63
                    },
83
                   
64
                    notEmpty: {
84
                    notEmpty: {
65
                        message: 'Please fill your Mobile'
85
                        message: 'Pleasefill your phone number'
66
                    },
86
                    },
67
             
87
                   
68
                    }
88
                    }
69
                },
89
                },
70
                registeredEmail1: {
90
                registeredEmail1: {
71
                validators: {
91
                validators: {
72
                    notEmpty: {
92
                    notEmpty: {
Line 94... Line 114...
94
                    }
114
                    }
95
                }
115
                }
96
            },
116
            },
97
          
117
          
98
 
118
 
99
		            bEntityDoc:{
119
                bEntityDoc:{
100
		
120
    
101
		               validators: {
121
                   validators: {
102
		                          file: {
122
                              file: {
103
		          //extension: 'pdf,zip,rtf,jpg,png',
123
              //extension: 'pdf,zip,rtf,jpg,png',
104
		         //type: 'application/pdf,application/zip,application/jpg,application.png'
124
             //type: 'application/pdf,application/zip,application/jpg,application.png'
105
		             
125
                 
106
		    },
126
        },
107
		    notEmpty: {
127
        notEmpty: {
108
		                    message: 'Document is required.'
128
                        message: 'Document is required.'
109
		              }
129
                  }
110
		    }
130
        }
111
		  },
131
      },
112
		
132
    
113
		
133
    
114
		  angleDoc1:{
134
      angleDoc1:{
115
		
135
    
116
		               validators: {
136
                   validators: {
117
		                          file: {
137
                              file: {
118
		         // extension: 'pdf,zip,rtf,jpg,png',
138
             // extension: 'pdf,zip,rtf,jpg,png',
119
		         // type: 'application/pdf,application/zip,application/jpg,application.png'
139
             // type: 'application/pdf,application/zip,application/jpg,application.png'
120
		             
140
                 
121
		    },
141
        },
122
		    notEmpty: {
142
        notEmpty: {
123
		                    message: 'Document is required.'
143
                        message: 'Document is required.'
124
		              }
144
                  }
125
		    }
145
        }
126
		  },
146
      },
127
		
147
    
128
		  angleDoc2:{
148
      angleDoc2:{
129
		
149
    
130
		               validators: {
150
                   validators: {
131
		                          file: {
151
                              file: {
132
		         // extension: 'pdf,zip,rtf,jpg,png',
152
             // extension: 'pdf,zip,rtf,jpg,png',
133
		         // type: 'application/pdf,application/zip,application/jpg,application.png'
153
             // type: 'application/pdf,application/zip,application/jpg,application.png'
134
		       
154
           
135
		    },
155
        },
136
		    notEmpty: {
156
        notEmpty: {
137
		                    message: 'Document is required.'
157
                        message: 'Document is required.'
138
		              }
158
                  }
139
		    }
159
        }
140
		  },
160
      },
141
			angleDoc3:{
161
      angleDoc3:{
142
			
162
      
143
			               validators: {
163
                     validators: {
144
			                          file: {
164
                                file: {
145
			         // extension: 'pdf,zip,rtf,jpg,png',
165
               // extension: 'pdf,zip,rtf,jpg,png',
146
			          //type: 'application/pdf,application/zip,application/jpg,application.png'
166
                //type: 'application/pdf,application/zip,application/jpg,application.png'
147
			             
167
                   
148
			    },
168
          },
149
			    notEmpty: {
169
          notEmpty: {
150
                    message: 'Document is required.'
170
                    message: 'Document is required.'
151
              }
171
              }
152
				    }
172
            }
153
				  },
173
          },
154
				angleDoc4:{
174
        angleDoc4:{
155
 
175
 
156
               validators: {
176
               validators: {
157
                          file: {
177
                          file: {
158
          //extension: 'pdf,zip,rtf,jpg,png',
178
          //extension: 'pdf,zip,rtf,jpg,png',
159
         // type: 'application/pdf,application/zip,application/jpg,application.png'
179
         // type: 'application/pdf,application/zip,application/jpg,application.png'
160
             
180
             
161
			    },
181
          },
162
			    notEmpty: {
182
          notEmpty: {
163
			                    message: 'Document is required.'
183
                          message: 'Document is required.'
164
			              }
184
                    }
165
			    }
185
          }
166
			  },
186
        },
167
			            
187
                  
168
			angleDoc5:{
188
      angleDoc5:{
169
			  validators: {
189
        validators: {
170
			                          file: {
190
                                file: {
171
			          //extension: 'pdf,zip,rtf,jpg,png',
191
                //extension: 'pdf,zip,rtf,jpg,png',
172
			          //type: 'application/pdf,application/zip,application/jpg,application.png'
192
                //type: 'application/pdf,application/zip,application/jpg,application.png'
173
			             
193
                   
174
			    },
194
          },
175
			                notEmpty: {
195
                      notEmpty: {
176
                    message: 'Document is required.'
196
                    message: 'Document is required.'
177
              }
197
              }
178
               }
198
               }
179
              },
199
              },
180
 
200
 
Line 473... Line 493...
473
 
493
 
474
        itrDoc:{
494
        itrDoc:{
475
 
495
 
476
               validators: {
496
               validators: {
477
                          file: {
497
                          file: {
478
		          extension: 'pdf,zip,rtf,jpg,png',
498
              extension: 'pdf,zip,rtf,jpg,png',
479
		          type: 'application/pdf,application/zip,application/jpg,application.png'
499
              type: 'application/pdf,application/zip,application/jpg,application.png'
480
		             
500
                 
481
		    },
501
        },
482
		    notEmpty: {
502
        notEmpty: {
483
		                    message: 'ITR Document is required.'
503
                        message: 'ITR Document is required.'
484
		              }
504
                  }
485
		    }
505
        }
486
		  },
506
      },
487
 
507
 
488
			  ownershipDoc:{
508
        ownershipDoc:{
489
			     validators: {
509
           validators: {
490
			                          file: {
510
                                file: {
491
			          //extension: 'pdf,zip,rtf,jpg,png',
511
                //extension: 'pdf,zip,rtf,jpg,png',
492
			          //type: 'application/pdf,application/zip,application/jpg,application.png'
512
                //type: 'application/pdf,application/zip,application/jpg,application.png'
493
			             
513
                   
494
			    },
514
          },
495
			    notEmpty: {
515
          notEmpty: {
496
			                    message: 'Ownership Document is required.'
516
                          message: 'Ownership Document is required.'
497
			              }
517
                    }
498
			    }
518
          }
499
			},
519
      },
500
			
520
      
501
			insuranceDoc:{
521
      insuranceDoc:{
502
			     validators: {
522
           validators: {
503
			                          file: {
523
                                file: {
504
			        //  extension: 'pdf,zip,rtf,jpg,png',
524
              //  extension: 'pdf,zip,rtf,jpg,png',
505
			         // type: 'application/pdf,application/zip,application/jpg,application.png'
525
               // type: 'application/pdf,application/zip,application/jpg,application.png'
506
			             
526
                   
507
			    },
527
          },
508
			    notEmpty: {
528
          notEmpty: {
509
			                    message: 'Insurance Document is required.'
529
                          message: 'Insurance Document is required.'
510
			              }
530
                    }
511
			    }
531
          }
512
			},
532
      },
513
			loanDoc:{
533
      loanDoc:{
514
			     validators: {
534
           validators: {
515
			                          file: {
535
                                file: {
516
			         // extension: 'pdf,zip,rtf,jpg,png',
536
               // extension: 'pdf,zip,rtf,jpg,png',
517
			          //type: 'application/pdf,application/zip,application/jpg,application.png'
537
                //type: 'application/pdf,application/zip,application/jpg,application.png'
518
			             
538
                   
519
			    },
539
          },
520
			    notEmpty: {
540
          notEmpty: {
521
			                    message: 'Document is required.'
541
                          message: 'Document is required.'
522
			              }
542
                    }
523
			    }
543
          }
524
			},
544
      },
525
			sanctionDoc:{
545
      sanctionDoc:{
526
			     validators: {
546
           validators: {
527
			                          file: {
547
                                file: {
528
			         // extension: 'pdf,zip,rtf,jpg,png',
548
               // extension: 'pdf,zip,rtf,jpg,png',
529
			         // type: 'application/pdf,application/zip,application/jpg,application.png'
549
               // type: 'application/pdf,application/zip,application/jpg,application.png'
530
			             
550
                   
531
			    },
551
          },
532
			    notEmpty: {
552
          notEmpty: {
533
			                    message: 'Document is required.'
553
                          message: 'Document is required.'
534
			              }
554
                    }
535
			    }
555
          }
536
			},
556
      },
537
			
557
      
538
			chequeCopy:{
558
      chequeCopy:{
539
			     validators: {
559
           validators: {
540
			                          file: {
560
                                file: {
541
			         // extension: 'pdf,zip,rtf,jpg,png',
561
               // extension: 'pdf,zip,rtf,jpg,png',
542
			         // type: 'application/pdf,application/zip,application/jpg,application.png'
562
               // type: 'application/pdf,application/zip,application/jpg,application.png'
543
			             
563
                   
544
			    },
564
          },
545
			    notEmpty: {
565
          notEmpty: {
546
			                    message: 'Document is required.'
566
                          message: 'Document is required.'
547
			              }
567
                    }
548
			    }
568
          }
549
			},
569
      },
550
 
570
 
551
        portalName1:{
571
        portalName1:{
552
             validators:{
572
             validators:{
553
                   notEmpty:{
573
                   notEmpty:{
554
                  message:'Please fill the PortalName'
574
                  message:'Please fill the PortalName'
Line 771... Line 791...
771
          async: false,
791
          async: false,
772
          beforeSend: function(){
792
          beforeSend: function(){
773
              $('#ajax-spinner').show();
793
              $('#ajax-spinner').show();
774
          },
794
          },
775
          success: function (data) {
795
          success: function (data) {
776
        	  $('#ajax-spinner').hide();
796
            $('#ajax-spinner').hide();
777
              alert("ThankYou for the registration.Out team will contact you soon.");
797
              alert("ThankYou for the registration.Out team will contact you soon.");
778
              $('#form')[0].reset();
798
              $('#form')[0].reset();
779
          },
799
          },
780
  		 error : function() {
800
       error : function() {
781
  		 	alert("OOPS!!!Failed to do changes.Try Again.");
801
        alert("OOPS!!!Failed to do changes.Try Again.");
782
  		 },
802
       },
783
          cache: false,
803
          cache: false,
784
          contentType: false,
804
          contentType: false,
785
          processData: false
805
          processData: false
786
      });
806
      });
787
});
807
});