nagasurendra commited on
Commit
c288b63
·
verified ·
1 Parent(s): a6bb354

Update templates/menu.html

Browse files
Files changed (1) hide show
  1. templates/menu.html +13 -0
templates/menu.html CHANGED
@@ -484,6 +484,10 @@ form-check-input addon-option{
484
  </form>
485
 
486
 
 
 
 
 
487
  <!-- Show menu items only when Customized Dish is not selected -->
488
  <div class="container mt-4">
489
  <h1 class="text-center">Menu</h1>
@@ -667,6 +671,15 @@ form-check-input addon-option{
667
  }
668
  }
669
 
 
 
 
 
 
 
 
 
 
670
  // Submit form after toggling
671
  form.submit();
672
  }
 
484
  </form>
485
 
486
 
487
+
488
+
489
+
490
+
491
  <!-- Show menu items only when Customized Dish is not selected -->
492
  <div class="container mt-4">
493
  <h1 class="text-center">Menu</h1>
 
671
  }
672
  }
673
 
674
+ // If Customized Dish is turned OFF manually, check Veg toggle and show all items if Veg is also off
675
+ if (!custom.checked) {
676
+ // If both are off, show all items
677
+ if (!veg.checked) {
678
+ // Reset category to All
679
+ document.getElementById('category-CustomizedDish').checked = false; // Ensure Customized Dish is OFF
680
+ }
681
+ }
682
+
683
  // Submit form after toggling
684
  form.submit();
685
  }