Prorotyp ekranu v3
This commit is contained in:
@@ -400,7 +400,7 @@ window.selectedAnimationHtml = null;
|
||||
}
|
||||
|
||||
fetchOrders();
|
||||
setInterval(fetchOrders, 3000);
|
||||
setInterval(fetchOrders, 10000);
|
||||
|
||||
// --- CALL WAITER LOGIC ---
|
||||
let billState = { payment: '', doc: '', nip: '', company: null };
|
||||
@@ -431,6 +431,21 @@ window.selectedAnimationHtml = null;
|
||||
}
|
||||
};
|
||||
|
||||
window.openWaiterDialog = function() {
|
||||
document.getElementById("waiterModal").classList.add("active");
|
||||
document.body.style.overflow = 'hidden';
|
||||
};
|
||||
|
||||
window.closeWaiterDialog = function() {
|
||||
document.getElementById("waiterModal").classList.remove("active");
|
||||
document.body.style.overflow = '';
|
||||
};
|
||||
|
||||
window.confirmCallWaiter = function() {
|
||||
closeWaiterDialog();
|
||||
callWaiter('order');
|
||||
};
|
||||
|
||||
window.openBillDialog = async function() {
|
||||
billState = { payment: '', doc: '', nip: '', company: null, selectedBillId: null };
|
||||
document.getElementById("billModal").classList.add("active");
|
||||
|
||||
@@ -400,7 +400,7 @@ window.selectedAnimationHtml = null;
|
||||
}
|
||||
|
||||
fetchOrders();
|
||||
setInterval(fetchOrders, 3000);
|
||||
setInterval(fetchOrders, 10000);
|
||||
|
||||
// --- CALL WAITER LOGIC ---
|
||||
let billState = { payment: '', doc: '', nip: '', company: null };
|
||||
@@ -431,6 +431,21 @@ window.selectedAnimationHtml = null;
|
||||
}
|
||||
};
|
||||
|
||||
window.openWaiterDialog = function() {
|
||||
document.getElementById("waiterModal").classList.add("active");
|
||||
document.body.style.overflow = 'hidden';
|
||||
};
|
||||
|
||||
window.closeWaiterDialog = function() {
|
||||
document.getElementById("waiterModal").classList.remove("active");
|
||||
document.body.style.overflow = '';
|
||||
};
|
||||
|
||||
window.confirmCallWaiter = function() {
|
||||
closeWaiterDialog();
|
||||
callWaiter('order');
|
||||
};
|
||||
|
||||
window.openBillDialog = async function() {
|
||||
billState = { payment: '', doc: '', nip: '', company: null, selectedBillId: null };
|
||||
document.getElementById("billModal").classList.add("active");
|
||||
|
||||
Reference in New Issue
Block a user