diff --git a/gestaoRaul/comandas/__pycache__/views.cpython-312.pyc b/gestaoRaul/comandas/__pycache__/views.cpython-312.pyc index 97d21b8..68fd0dd 100644 Binary files a/gestaoRaul/comandas/__pycache__/views.cpython-312.pyc and b/gestaoRaul/comandas/__pycache__/views.cpython-312.pyc differ diff --git a/gestaoRaul/comandas/templates/comandas.html b/gestaoRaul/comandas/templates/comandas.html index 27abe8a..e91ba59 100644 --- a/gestaoRaul/comandas/templates/comandas.html +++ b/gestaoRaul/comandas/templates/comandas.html @@ -55,7 +55,7 @@ Comandas

Abrir Comanda


- + { + textField.focus(); + }, 100); // 50ms de delay (ajuste conforme necessário) +} textField.value = ''; - textField.focus() } @@ -251,7 +255,9 @@ function troco(){ function addOrder(){ obs = document.getElementById('obs') + id = document.getElementById('id-temp').value + var obsPrint = document.getElementById(id+'-obsOrder') tooltipObs = document.getElementById('tooltip-id-'+id) fetch(`/comandas/editOrders/${id}/${obs.value}`, { @@ -266,11 +272,13 @@ function addOrder(){ showToast('✅Pedido atualizado com sucesso!😁','success') tooltipObs.dataset.tooltip = data.obs obs.value = '' + obsPrint.value = data.obs document.getElementById('modal-obs').style.display = 'none'; } }) .catch(error => { + console.log(error) showToast('❌Ocorreu um erro!😢','error') });