From 51c4973796ef05b81f93fd8f4ce13e97624146ba Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Thu, 16 Jul 2026 10:46:08 -0500 Subject: [PATCH] =?UTF-8?q?feat:=20bot=C3=B3n=20=C3=97=20para=20cerrar=20p?= =?UTF-8?q?anel=20de=20configuraci=C3=B3n=20de=20tomas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit El panel mp-cfg-overlay no tenía forma de cerrarse. Añade botón × en el encabezado que oculta el panel, desmarca el tipo de examen y resetea la visibilidad de secciones. Co-Authored-By: Claude Sonnet 4.6 --- ver_formulario_enviado.php | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/ver_formulario_enviado.php b/ver_formulario_enviado.php index 067dcb9..7422ab5 100644 --- a/ver_formulario_enviado.php +++ b/ver_formulario_enviado.php @@ -705,14 +705,20 @@ function _addExamWizardHtml(string $cid): string {
-
+
Configurar protocolo de tomas - +
+ + +

@@ -1416,6 +1422,13 @@ document.getElementById('mp-cfg-iniciar').addEventListener('click', function() { btn.disabled = false; btn.innerHTML = 'Iniciar protocolo'; }); }); + +// Botón cerrar panel de config +document.getElementById('mp-cfg-cerrar').addEventListener('click', function() { + document.getElementById('mp-cfg-overlay').classList.add('d-none'); + document.querySelectorAll('[name="_c8j2g16[]"]').forEach(function(el) { el.checked = false; }); + _mpApplyExamVisibility(null); +}); /* ── Wizard: añadir tipo de examen ── */ var _aewState = {}; // {cid: {count, rows}}