@@ -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}}