Spaces:
Runtime error
Runtime error
Update templates/menu.html
Browse files- templates/menu.html +1 -1
templates/menu.html
CHANGED
@@ -672,12 +672,12 @@ function showItemDetails(name, price, image, description, section, selectedCateg
|
|
672 |
|
673 |
// If the checkbox belongs to a predefined category like "Spice Level"
|
674 |
if (checkboxGroup === "Select Spice Level" || checkboxGroup === "Choose Spice Level") {
|
675 |
-
// If we haven't already selected a spice level for this category, select this one
|
676 |
if (categorySelection[checkboxGroup] === null) {
|
677 |
console.log(`Pre-selecting spice level: ${checkboxName} for ${checkboxGroup}`);
|
678 |
checkbox.checked = true;
|
679 |
categorySelection[checkboxGroup] = checkboxName; // Mark as selected for this category
|
680 |
}
|
|
|
681 |
} else if (checkboxGroup === "Raita/Sides") {
|
682 |
// For Raita/Sides, select any matching add-ons
|
683 |
if (window.most_common_addons.includes(checkboxName)) {
|
|
|
672 |
|
673 |
// If the checkbox belongs to a predefined category like "Spice Level"
|
674 |
if (checkboxGroup === "Select Spice Level" || checkboxGroup === "Choose Spice Level") {
|
|
|
675 |
if (categorySelection[checkboxGroup] === null) {
|
676 |
console.log(`Pre-selecting spice level: ${checkboxName} for ${checkboxGroup}`);
|
677 |
checkbox.checked = true;
|
678 |
categorySelection[checkboxGroup] = checkboxName; // Mark as selected for this category
|
679 |
}
|
680 |
+
|
681 |
} else if (checkboxGroup === "Raita/Sides") {
|
682 |
// For Raita/Sides, select any matching add-ons
|
683 |
if (window.most_common_addons.includes(checkboxName)) {
|