v20260108-28-admin-all-mail-open-fix #63

Merged
ivooskamp merged 3 commits from v20260108-28-admin-all-mail-open-fix into main 2026-01-13 11:24:38 +01:00
Showing only changes of commit 60f6f8e3d6 - Show all commits

View File

@ -219,10 +219,15 @@
<script>
(function () {
function initAdminAllMailPopup() {
var table = document.getElementById('mailAuditTable');
var modalEl = document.getElementById('mailMessageModal');
if (!table || !modalEl) return;
// base.html loads Bootstrap JS after the page content. Initialize after DOMContentLoaded
// so bootstrap.Modal is guaranteed to be available.
if (typeof bootstrap === 'undefined' || !bootstrap.Modal) return;
var modal = new bootstrap.Modal(modalEl);
function setText(id, value) {
@ -297,6 +302,9 @@
if (!id) return;
openMessage(id);
});
}
document.addEventListener('DOMContentLoaded', initAdminAllMailPopup);
})();
</script>