diff --git a/modules/turnero/views/kiosko.php b/modules/turnero/views/kiosko.php index de803b9..a57dd1f 100644 --- a/modules/turnero/views/kiosko.php +++ b/modules/turnero/views/kiosko.php @@ -506,6 +506,16 @@ unset($p); placeholder="Ej: 1234567890" maxlength="20" autocomplete="off" inputmode="none"> +
+ + +
Para recibir notificaciones de su turno
+
+
@@ -525,9 +535,6 @@ unset($p);
- - - @@ -742,12 +749,19 @@ unset($p); function setSpinner(on) { document.getElementById('spinner').classList.toggle('active', on); } // ── Numpad táctil ───────────────────────────────────────────────── + const _inpCel = document.getElementById('inp-cel'); + let _npTarget = _inpCedula; // campo activo para el numpad + + [_inpCedula, _inpCel].forEach(inp => { + inp.addEventListener('focus', () => { _npTarget = inp; }); + }); + document.querySelectorAll('.np-btn').forEach(btn => { // pointerdown con preventDefault evita que el input pierda el foco btn.addEventListener('pointerdown', e => { e.preventDefault(); const k = btn.dataset.k; - const inp = _inpCedula; + const inp = _npTarget; if (k === 'OK') { confirmarTurno(); return;