From d388185d8cf27ae5fca35ab00234a44b4fa800c2 Mon Sep 17 00:00:00 2001 From: lizandrogd <77708265+lizandrogd@users.noreply.github.com> Date: Wed, 21 Jan 2026 12:42:16 -0500 Subject: [PATCH] up --- conversations.php | 2 +- index.php | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/conversations.php b/conversations.php index 15c0f3f..ba728a8 100644 --- a/conversations.php +++ b/conversations.php @@ -1378,7 +1378,7 @@ } return `
diff --git a/index.php b/index.php index 722eaab..e3e3fc9 100644 --- a/index.php +++ b/index.php @@ -733,8 +733,33 @@ try { actionsDiv.style.display = 'none'; }); } + + // Lightbox helper para imágenes (abre un modal Bootstrap con la imagen en grande) + function openImageLightbox(url, caption = '') { + let img = document.getElementById('imageLightboxImg'); + let cap = document.getElementById('imageLightboxCaption'); + if (!img || !cap) return; // seguridad + img.src = url; + cap.textContent = caption || ''; + const modalEl = document.getElementById('imageLightboxModal'); + const bsModal = new bootstrap.Modal(modalEl); + bsModal.show(); + } + + +