geethareddy DSatishchandra commited on
Commit
f5286c0
·
verified ·
1 Parent(s): 89dc310

Update templates/menu.html (#1)

Browse files

- Update templates/menu.html (a5e08676cfaa33a46ce03ef60168bf2ace6a25bf)


Co-authored-by: D Satish Chandra <[email protected]>

Files changed (1) hide show
  1. 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)}`)