Advertisement
yanirx

spam place bet csgolounge

Apr 29th, 2015
382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. placeBetNew = function placeBetNew(match, tlss) {
  2. if (!$('#on').val()) {
  3. $("#placebut").show();
  4. console.log("You didn't select a team.");
  5. return;
  6. }
  7.  
  8. if ($('.left').children().size() > 0) {
  9. if (returns == true) {
  10. $.ajax({
  11. type: "POST",
  12. url: "ajax/postBet.php",
  13. data: $("#betpoll").serialize() + "&match=" + match + "&tlss=" + tlss,
  14. success: function(data) {
  15. if (data) {
  16. $("#placebut").show();
  17. console.log(data);
  18. $("#placebut").click();
  19. } else {
  20. window.location.href = "mybets";
  21. }
  22. }
  23. });
  24. } else {
  25. $.ajax({
  26. type: "POST",
  27. url: "ajax/postBetOffer.php",
  28. data: $("#betpoll").serialize() + "&match=" + match + "&tlss=" + tlss,
  29. success: function(data) {
  30. if (data) {
  31. $("#placebut").show();
  32. console.log(data);
  33. $("#placebut").click();
  34. } else {
  35. window.location.href = "mybets";
  36. localStorage.playedbet = false;
  37. }
  38. }
  39. });
  40. }
  41. } else {
  42. $("#placebut").show();
  43. console.log("You didn't pick any items.");
  44. }
  45. }
  46.  
  47. $("#placebut").click();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement