diff --git a/templates/bootstrap_table.html b/templates/bootstrap_table.html index eef5edc..c69d69b 100644 --- a/templates/bootstrap_table.html +++ b/templates/bootstrap_table.html @@ -220,11 +220,12 @@ document.addEventListener('DOMContentLoaded', function () { lightboxTrigger.forEach(function (element) { element.addEventListener('click', function () { const imgSrc = element.getAttribute('src'); - textContent = '' + textContent = ''; try { textContent = element.closest('tr').querySelector('td:nth-child(3)').textContent; // Adjust the index accordingly lightboxText.textContent = textContent; } catch (e) { + textContent = ''; } lightboxImage.setAttribute('src', imgSrc); diff --git a/templates/frontpage.html b/templates/frontpage.html index 2bd09fd..e8f658a 100644 --- a/templates/frontpage.html +++ b/templates/frontpage.html @@ -211,13 +211,13 @@ body {