fix: canvas de firma no respondía al mover el canvas al esquema
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 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
aac468b056
commit
c91900ef14
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user