Subversion Repositories SmartDukaan

Rev

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

Rev 21940 Rev 21941
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
      $.blockUI({ message: "Please wait while we upload data to our server" }); 
-
 
-
 
786
      	
787
      
787
      
788
      jQuery.ajax({
788
      jQuery.ajax({
789
          url: "register",
789
          url: "register",
790
          type: 'POST',
790
          type: 'POST',
791
          data: formData,
791
          data: formData,
792
          async: false,
792
          async: false,
793
          success: function (data) {
793
          success: function (data) {
794
              //$('#form')[0].reset();
794
              //$('#form')[0].reset();
795
        	  $.unblockUI;
795
        	  $.unblockUI();
796
          },
796
          },
797
       error : function() {
797
       error : function() {
798
    	   alert("OOPS!!!Failed to do changes.Try Again.");
798
    	   alert("OOPS!!!Failed to do changes.Try Again.");
799
    	   $.unblockUI;
799
    	   $.unblockUI();
800
       },
800
       },
801
          cache: false,
801
          cache: false,
802
          contentType: false,
802
          contentType: false,
803
          processData: false
803
          processData: false
804
      });
804
      });