Advertisement
Guest User

Untitled

a guest
May 25th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Kameleoon.API.runWhenConditionTrue(
  2.     function(){
  3.         return (etGlobal && etGlobal.cartUpdate);
  4.     },
  5.     function(){
  6.         etGlobal.cartUpdate = function(a, b, c) {
  7.             var d;
  8.             "delete" == c ? (d = 0, $("#ref_" + a).fadeOut()) : ("+" == b && (b = "+1"), d = b.replace("&qte=", "")), $.fancybox.showLoading(), console.log(a), console.log(d), $.ajax({
  9.                 type: "POST",
  10.                 url: "/shop/check/panier.php?" + a + "=" + d,
  11.                 dataType: "json",
  12.                 success: function() {
  13.                     window.location.href = "https://www.entelechargement.com/shop/fr-fr/";
  14.                 }
  15.             })
  16.         };
  17.     },
  18.     200
  19. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement