mirror of
https://github.com/badlogic/heissepreise.git
synced 2024-06-30 12:27:15 +02:00
Fix state URL in cart when items are checked for charting.
This commit is contained in:
parent
7e527f2f34
commit
dbdf6e2f38
|
@ -205,6 +205,9 @@ function loadCart() {
|
||||||
for (const id of d.split(";")) {
|
for (const id of d.split(";")) {
|
||||||
cart.items.lookup[id].chart = true;
|
cart.items.lookup[id].chart = true;
|
||||||
}
|
}
|
||||||
|
const url = stateToUrl();
|
||||||
|
history.pushState({}, null, url);
|
||||||
|
cartHeader.render();
|
||||||
}
|
}
|
||||||
cartList.model = cartFilter.model = cart;
|
cartList.model = cartFilter.model = cart;
|
||||||
productsList.model = productsFilter.model = models.items;
|
productsList.model = productsFilter.model = models.items;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user