Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function submitF(){
- $(".request-button").fadeOut(10, function(){
- $(".request-accepted").text("Przetwarzanie zgłoszenia, proszę czekać...").fadeIn(10, function(){
- });
- });
- document.body.style.cursor = 'wait';
- var request = $.ajax({
- method: "POST",
- url: "thanks.php",
- data: {hid: getSearchParams("hid")}
- });
- request.done(function (response) {
- if (response == "Message sent!") {
- document.body.style.cursor = 'default';
- $(".request-accepted").fadeOut(100, function(){
- $(".request-accepted").text("Twoje zgłoszenie zostało przyjęte").fadeIn(100);
- })
- } else {
- }
- });
- request.fail(function (response) {
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement