Update templates/menu.html
#1
by
DSatishchandra
- opened
- templates/menu.html +3 -0
templates/menu.html
CHANGED
@@ -527,6 +527,9 @@ form.text-center.mb-4 {
|
|
527 |
const modalSectionEl = document.getElementById('modal-section');
|
528 |
modalSectionEl.setAttribute('data-section', section);
|
529 |
modalSectionEl.setAttribute('data-category', selectedCategory);
|
|
|
|
|
|
|
530 |
|
531 |
// Fetch customization options based on the section
|
532 |
fetch(`/api/addons?item_name=${encodeURIComponent(name)}&item_section=${encodeURIComponent(section)}`)
|
|
|
527 |
const modalSectionEl = document.getElementById('modal-section');
|
528 |
modalSectionEl.setAttribute('data-section', section);
|
529 |
modalSectionEl.setAttribute('data-category', selectedCategory);
|
530 |
+
|
531 |
+
// Set the default quantity to 1
|
532 |
+
document.getElementById('quantityInput').value = 1;
|
533 |
|
534 |
// Fetch customization options based on the section
|
535 |
fetch(`/api/addons?item_name=${encodeURIComponent(name)}&item_section=${encodeURIComponent(section)}`)
|