diff --git a/ver_formulario_enviado.php b/ver_formulario_enviado.php index 92b4337..bb5204a 100644 --- a/ver_formulario_enviado.php +++ b/ver_formulario_enviado.php @@ -1982,7 +1982,7 @@ window._fpwPreFirma = ; var pendingId = ; var entry = window._muestrasMap && window._muestrasMap[pendingId]; document.addEventListener('DOMContentLoaded', function() { - _mpIniciarCountdown(targetMs, entry ? (entry.label || null) : null, pendingId); + _mpIniciarCountdown(targetMs, entry ? _mpEffectiveLabel(entry.label || '') : null, pendingId); }); })(); @@ -2112,7 +2112,7 @@ function _guardarFirmaMP(widget, svg, msgEl, entry, campoId) { } else if (data.siguiente_toma_at) { // Fix 2: pasar timestamp exacto; evita el redondeo de Math.round var targetMs = new Date(data.siguiente_toma_at.replace(' ', 'T')).getTime(); - _mpIniciarCountdown(targetMs, entry.next_label, entry.next_firma_id); + _mpIniciarCountdown(targetMs, _mpEffectiveLabel(entry.next_label || ''), entry.next_firma_id); } else if (!entry.is_last) { var nw = entry.next_firma_id ? document.getElementById('fpw-' + entry.next_firma_id) : null; if (!nw) nw = document.querySelector('.firma-pro-widget:not([style*="display:none"])');