File: D:/HostingSpaces/SBogers95/rentman.io/wwwroot/js/shop/shop.js
var ShoppingCart={init:function(){},addProductToShoppingcart:function(t,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();