master
parent
b860d01275
commit
c5ab4dc506
|
@ -198,6 +198,12 @@
|
|||
localStorage.setItem("products", JSON.stringify(objProducts));
|
||||
}
|
||||
$(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"));
|
||||
}); */
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue