Subversion Repositories SmartDukaan

Rev

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

Rev 21933 Rev 21940
Line 781... Line 781...
781
      if(!isChecked){
781
      if(!isChecked){
782
          alert('Please select the Status of shop');
782
          alert('Please select the Status of shop');
783
           return false;
783
           return false;
784
     }
784
     }
785
      formData = new FormData($(this)[0]);
785
      formData = new FormData($(this)[0]);
786
      $('#ajax-spinner').show();
786
      $.blockUI({ message: "Please wait while we upload data to our server" }); 
-
 
787
      
787
      jQuery.ajax({
788
      jQuery.ajax({
788
          url: "register",
789
          url: "register",
789
          type: 'POST',
790
          type: 'POST',
790
          data: formData,
791
          data: formData,
791
          async: false,
792
          async: false,
792
          success: function (data) {
793
          success: function (data) {
793
            $('#ajax-spinner').hide();
794
              //$('#form')[0].reset();
794
              alert("ThankYou for the registration.Out team will contact you soon.");
-
 
795
              $('#form')[0].reset();
795
        	  $.unblockUI;
796
          },
796
          },
797
       error : function() {
797
       error : function() {
798
    	   $('#ajax-spinner').hide();
-
 
799
    	   alert("OOPS!!!Failed to do changes.Try Again.");
798
    	   alert("OOPS!!!Failed to do changes.Try Again.");
-
 
799
    	   $.unblockUI;
800
       },
800
       },
801
          cache: false,
801
          cache: false,
802
          contentType: false,
802
          contentType: false,
803
          processData: false
803
          processData: false
804
      });
804
      });