|
@@ -267,7 +267,7 @@ document.addEventListener("DOMContentLoaded", async () => {
|
|
|
updateCartDisplay();
|
|
updateCartDisplay();
|
|
|
|
|
|
|
|
if (welcomeModal && startOrderButton) {
|
|
if (welcomeModal && startOrderButton) {
|
|
|
- startOrderButton.addEventListener('click', () => {
|
|
|
|
|
|
|
+ startOrderButton.onclick = () => {
|
|
|
const name = userNameInput.value.trim();
|
|
const name = userNameInput.value.trim();
|
|
|
const table = userTableInput.value;
|
|
const table = userTableInput.value;
|
|
|
if (name && table) {
|
|
if (name && table) {
|
|
@@ -279,7 +279,7 @@ document.addEventListener("DOMContentLoaded", async () => {
|
|
|
} else {
|
|
} else {
|
|
|
alert('Por favor, ingresa tu nombre y número de mesa para continuar.');
|
|
alert('Por favor, ingresa tu nombre y número de mesa para continuar.');
|
|
|
}
|
|
}
|
|
|
- });
|
|
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
async function initializeApp() {
|
|
async function initializeApp() {
|