Spaces:
Sleeping
Sleeping
Update templates/menu.html
Browse files- templates/menu.html +1 -0
templates/menu.html
CHANGED
|
@@ -952,6 +952,7 @@ function addToCartFromModal() {
|
|
| 952 |
const modal = document.getElementById('itemModal');
|
| 953 |
const modalInstance = bootstrap.Modal.getInstance(modal);
|
| 954 |
modalInstance.hide();
|
|
|
|
| 955 |
} else {
|
| 956 |
alert(data.error || 'Failed to add item to cart.');
|
| 957 |
}
|
|
|
|
| 952 |
const modal = document.getElementById('itemModal');
|
| 953 |
const modalInstance = bootstrap.Modal.getInstance(modal);
|
| 954 |
modalInstance.hide();
|
| 955 |
+
showCartButton();
|
| 956 |
} else {
|
| 957 |
alert(data.error || 'Failed to add item to cart.');
|
| 958 |
}
|