nagasurendra commited on
Commit
12502b0
·
verified ·
1 Parent(s): 346c2b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -123,6 +123,16 @@ def app():
123
  document.getElementById('modal-name').innerText = name;
124
  document.getElementById('modal-description').innerText = description;
125
  document.getElementById('modal-price').innerText = price;
 
 
 
 
 
 
 
 
 
 
126
  }
127
 
128
  function closeModal() {
 
123
  document.getElementById('modal-name').innerText = name;
124
  document.getElementById('modal-description').innerText = description;
125
  document.getElementById('modal-price').innerText = price;
126
+
127
+ // Reset spice levels and extras
128
+ const spiceLevelInputs = document.querySelectorAll('input[name="spice-level"]');
129
+ spiceLevelInputs.forEach(input => input.checked = false);
130
+
131
+ const extrasInputs = document.querySelectorAll('input[name="biryani-extra"]');
132
+ extrasInputs.forEach(input => input.checked = false);
133
+
134
+ document.getElementById('quantity').value = 1;
135
+ document.getElementById('special-instructions').value = '';
136
  }
137
 
138
  function closeModal() {