File: D:/HostingSpaces/SBogers10/carrot.komma.pro/wwwroot/js/shop/shop.js
var ShoppingCart={init:function(){},addProductToShoppingcart:function(t,o){console.log(o);Ajax.post("/addProductToShoppingcart",{productableId:t,itemType:o,amount:10},function(t){window.location=t.response})},removeItemFromShoppingcart:function(t,o){Ajax.post("/removeItemFromShoppingcart",{productableId:t,itemType:o},function(t){window.location=t.response})},setItemAmountInShoppingcart:function(t,o){o>0?Ajax.post("/setItemAmountInShoppingcart",{itemId:t,amount:o},function(t){window.location=t.response}):this.removeItemFromShoppingcart(t)},updateCartButtonCounter:function(){var t=$(".shoppingcartItemList ul li").length;$(".shoppingCartButton span.shoppingCartButtonCounter").html(t)}};ShoppingCart.init();