Subversion Repositories SmartDukaan

Rev

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

Rev 21823 Rev 21824
Line 94... Line 94...
94
                    }
94
                    }
95
                }
95
                }
96
            },
96
            },
97
          
97
          
98
 
98
 
99
		            bEntitydoc:{
99
		            bEntityDoc:{
100
		
100
		
101
		               validators: {
101
		               validators: {
102
		                          file: {
102
		                          file: {
103
		          //extension: 'pdf,zip,rtf,jpg,png',
103
		          //extension: 'pdf,zip,rtf,jpg,png',
104
		         //type: 'application/pdf,application/zip,application/jpg,application.png'
104
		         //type: 'application/pdf,application/zip,application/jpg,application.png'
Line 761... Line 761...
761
 var isChecked = jQuery("input[type=checkbox]:checked").val();
761
 var isChecked = jQuery("input[type=checkbox]:checked").val();
762
      if(!isChecked){
762
      if(!isChecked){
763
          alert('Please select the Status of shop');
763
          alert('Please select the Status of shop');
764
           return false;
764
           return false;
765
     }
765
     }
-
 
766
      formData = new FormData($(this)[0]);
-
 
767
      for (var pair of formData.entries()) {
-
 
768
    	  console.log(pair[0]+ ', ' + pair[1]);
-
 
769
       }
-
 
770
      
-
 
771
      jQuery.ajax({
-
 
772
          url: "fofo-registration",
-
 
773
          type: 'POST',
-
 
774
          data: formData,
-
 
775
          async: false,
-
 
776
          success: function (data) {
-
 
777
              alert("Changes propagated successfully");
-
 
778
          },
-
 
779
  		 error : function() {
-
 
780
  		 	alert("OOPS!!!Failed to do changes.Try Again.");
-
 
781
  		 },
-
 
782
          cache: false,
-
 
783
          contentType: false,
-
 
784
          processData: false
-
 
785
      });
766
});
786
});
767
}
-
 
768
787
}
-
 
788