master
parent
b860d01275
commit
c5ab4dc506
|
@ -198,6 +198,12 @@
|
||||||
localStorage.setItem("products", JSON.stringify(objProducts));
|
localStorage.setItem("products", JSON.stringify(objProducts));
|
||||||
}
|
}
|
||||||
$(window).load(function(){
|
$(window).load(function(){
|
||||||
|
let product = {};
|
||||||
|
product["id"] = database.attr("data-id");
|
||||||
|
product["name"] = database.attr("data-name");
|
||||||
|
objProducts.push(product);
|
||||||
|
objProducts.splice(index, 1);
|
||||||
|
updateProductsInLocalStorage();
|
||||||
if(localStorage.getItem("products") != null) objProducts = JSON.parse(localStorage.getItem("products"));
|
if(localStorage.getItem("products") != null) objProducts = JSON.parse(localStorage.getItem("products"));
|
||||||
}); */
|
}); */
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue