This commit is contained in:
Lizandro Guarnizo
2026-06-16 12:55:39 -05:00
parent b66f52864d
commit e7a068243c
3 changed files with 44 additions and 20 deletions
+2 -2
View File
@@ -992,7 +992,7 @@ function abrirFirmaEnfermero(formularioId, nombre) {
document.getElementById('fe-nombre-consentimiento').textContent = nombre;
if (!feCanvas._el) feCanvas.init();
feCanvas.limpiar();
const modal = bootstrap.Modal.getOrCreate(document.getElementById('modalFirmaEnfermero'));
const modal = bootstrap.Modal.getOrCreateInstance(document.getElementById('modalFirmaEnfermero'));
modal.show();
}
@@ -1011,7 +1011,7 @@ async function feGuardarFirma() {
});
const json = await res.json();
if (json.ok) {
bootstrap.Modal.getInstance(document.getElementById('modalFirmaEnfermero')).hide();
bootstrap.Modal.getOrCreateInstance(document.getElementById('modalFirmaEnfermero')).hide();
mostrarToast('Firma del enfermero guardada', 'success');
await refrescarConsentimientosLugar();
} else {