Subversion Repositories SmartDukaan

Rev

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

Rev 21824 Rev 21826
Line 657... Line 657...
657
 
657
 
658
         
658
         
659
        
659
        
660
            }
660
            }
661
        }).on('success.form.bv', function(e) {
661
        }).on('success.form.bv', function(e) {
662
            $('#success_message').slideDown({ opacity: "show" }, "slow") // Do something ...
-
 
663
                $('#form').data('bootstrapValidator').resetForm();
662
                $('#form').data('bootstrapValidator').resetForm();
664
 
663
 
665
            // Prevent form submission
664
            // Prevent form submission
666
            e.preventDefault();
665
            e.preventDefault();
667
 
666
 
Line 767... Line 766...
767
      for (var pair of formData.entries()) {
766
      for (var pair of formData.entries()) {
768
    	  console.log(pair[0]+ ', ' + pair[1]);
767
    	  console.log(pair[0]+ ', ' + pair[1]);
769
       }
768
       }
770
      
769
      
771
      jQuery.ajax({
770
      jQuery.ajax({
772
          url: "fofo-registration",
771
          url: "register",
773
          type: 'POST',
772
          type: 'POST',
774
          data: formData,
773
          data: formData,
775
          async: false,
774
          async: false,
-
 
775
          beforeSend: function(){
-
 
776
              $('#ajax-spinner').show();
-
 
777
          },
-
 
778
          complete: function(){
-
 
779
              $('#ajax-spinner').hide();
-
 
780
          },
776
          success: function (data) {
781
          success: function (data) {
777
              alert("Changes propagated successfully");
782
              alert("ThankYou for the registration.Out team will contact you soon.");
-
 
783
              $('#form')[0].reset();
778
          },
784
          },
779
  		 error : function() {
785
  		 error : function() {
780
  		 	alert("OOPS!!!Failed to do changes.Try Again.");
786
  		 	alert("OOPS!!!Failed to do changes.Try Again.");
781
  		 },
787
  		 },
782
          cache: false,
788
          cache: false,