Subversion Repositories SmartDukaan

Rev

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

Rev 21943 Rev 21944
Line 789... Line 789...
789
 
789
 
790
 
790
 
791
 
791
 
792
function submitForm(formData){
792
function submitForm(formData){
793
    console.log(formData);
793
    console.log(formData);
794
    jQuery.blockUI({ message: "<h5>Please wait while we upload data to our server</h5>" });
794
    //jQuery.blockUI({ message: "<h5>Please wait while we upload data to our server</h5>" });
-
 
795
    $('#pleaseWaitDialog').modal('show');
795
    
796
    
796
    jQuery.ajax({
797
    jQuery.ajax({
797
        url: "register",
798
        url: "register",
798
        type: 'POST',
799
        type: 'POST',
799
        data: formData,
800
        data: formData,
800
        async: false,
801
        async: false,
801
        success: function (data) {
802
        success: function (data) {
802
            //$('#form')[0].reset();
803
            //$('#form')[0].reset();
803
      	  jQuery.unblockUI();
804
      	  //jQuery.unblockUI();
-
 
805
        	$('#pleaseWaitDialog').modal('hide');
804
        },
806
        },
805
     error : function() {
807
     error : function() {
806
  	   alert("OOPS!!!Failed to do changes.Try Again.");
808
  	   alert("OOPS!!!Failed to do changes.Try Again.");
807
  	   jQuery.unblockUI();
809
  	 $('#pleaseWaitDialog').modal('hide');
808
     },
810
     },
809
        cache: false,
811
        cache: false,
810
        contentType: false,
812
        contentType: false,
811
        processData: false
813
        processData: false
812
    });
814
    });