diff --git a/conversations.php b/conversations.php index 15c0f3f..ba728a8 100644 --- a/conversations.php +++ b/conversations.php @@ -1378,7 +1378,7 @@ } return `
- + Imagen
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(); + } + + +