Advertisement
Guest User

Untitled

a guest
Oct 17th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. $.ajax({
  2. url: 'en/default/clients/ajax/createclientlocation.htm',
  3. cache: false,
  4. contentType: false,
  5. data: submitdata,
  6. processData:false,
  7. dataType: 'json',
  8. timeout:5000,
  9. method:'POST',
  10.  
  11. beforeSend: function() {
  12. $("#ajax-spinner").fadeIn();
  13. },
  14.  
  15. success:function(data){
  16.  
  17. if(data.results.error == false){
  18.  
  19. $('#addOutlet').delay(1000).modal('hide');
  20. $("#ajax-spinner").delay(500).fadeOut();
  21.  
  22. $('#addoutletform').trigger("reset");
  23.  
  24. $('.client-locations-list').html(data.results.html);
  25. $('li.selected').click();
  26. }
  27.  
  28. }
  29. });
  30. }
  31. });
  32. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement