Subversion Repositories SmartDukaan

Rev

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

Rev 22146 Rev 22148
Line 484... Line 484...
484
                    }
484
                    }
485
          }
485
          }
486
      },
486
      },
487
      
487
      
488
      insuranceDoc:{
488
      insuranceDoc:{
489
    	   excluded: false,   
489
    	   excluded: optionalDocsHandler,   
490
    	  validators: {
490
    	  validators: {
491
              
491
              
492
          notEmpty: {
492
          notEmpty: {
493
                          message: 'Insurance Document is required.'
493
                          message: 'Insurance Document is required.'
494
                    }
494
                    }
495
          }
495
          }
496
      },
496
      },
497
      loanDoc:{
497
      loanDoc:{
498
    	   excluded: false,   
498
    	   excluded: optionalDocsHandler,   
499
   
499
   
500
           validators: {
500
           validators: {
501
               
501
               
502
           notEmpty: {
502
           notEmpty: {
503
                          message: 'Document is required.'
503
                          message: 'Document is required.'
504
            }
504
            }
505
           }
505
           }
506
      },
506
      },
507
      sanctionDoc:{
507
      sanctionDoc:{
508
    	   excluded: false,   
508
    	   excluded: optionalDocsHandler,   
509
      
509
      
510
           validators: {
510
           validators: {
511
             
511
             
512
          notEmpty: {
512
          notEmpty: {
513
                          message: 'Document is required.'
513
                          message: 'Document is required.'
Line 771... Line 771...
771
	  var returnArray = {};
771
	  var returnArray = {};
772
	  for (var i = 0; i < formArray.length; i++){
772
	  for (var i = 0; i < formArray.length; i++){
773
	    returnArray[formArray[i]['name']] = formArray[i]['value'];
773
	    returnArray[formArray[i]['name']] = formArray[i]['value'];
774
	  }
774
	  }
775
	  return returnArray;
775
	  return returnArray;
-
 
776
}
-
 
777
 
-
 
778
function optionalDocsHandler($field, validator) {
-
 
779
	return $("input[name=doc_" + $field.attr(name) + "]").is(":visible"); 
776
}
780
}
777
781