Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. function submitF(){
  2. $(".request-button").fadeOut(10, function(){
  3. $(".request-accepted").text("Przetwarzanie zgłoszenia, proszę czekać...").fadeIn(10, function(){
  4.  
  5. });
  6. });
  7. document.body.style.cursor = 'wait';
  8. var request = $.ajax({
  9. method: "POST",
  10. url: "thanks.php",
  11. data: {hid: getSearchParams("hid")}
  12. });
  13. request.done(function (response) {
  14. if (response == "Message sent!") {
  15. document.body.style.cursor = 'default';
  16. $(".request-accepted").fadeOut(100, function(){
  17. $(".request-accepted").text("Twoje zgłoszenie zostało przyjęte").fadeIn(100);
  18. })
  19. } else {
  20. }
  21. });
  22. request.fail(function (response) {
  23. });
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement