From c91900ef14df9951ea0afa3124aacc7489fa21c5 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Wed, 24 Jun 2026 01:18:38 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20canvas=20de=20firma=20no=20respond=C3=AD?= =?UTF-8?q?a=20al=20mover=20el=20canvas=20al=20esquema?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit El JS buscaba #turneroFirmaWidget para arrancar; como ese div ya no se renderiza cuando el esquema tiene campo firma propio, el script salía sin enlazar eventos al canvas. Ahora busca el canvas directamente. Co-Authored-By: Claude Sonnet 4.6 --- ver_formulario_enviado.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ver_formulario_enviado.php b/ver_formulario_enviado.php index edca63d..98aa0d0 100644 --- a/ver_formulario_enviado.php +++ b/ver_formulario_enviado.php @@ -884,10 +884,8 @@ function esc2(mixed $v): string { /* ── Firma de consentimiento turnero ────────────────────────────────── */ (function () { - var widget = document.getElementById('turneroFirmaWidget'); - if (!widget) return; - var canvas = document.getElementById('turneroCv'); + if (!canvas) return; var ctx = canvas.getContext('2d'); var btnLimp = document.getElementById('turneroLimpiar'); var btnFirm = document.getElementById('turneroFirmar');