diff --git a/atlas/templates/atlas/case_display_block.html b/atlas/templates/atlas/case_display_block.html index de1cc590..5e55e7fd 100755 --- a/atlas/templates/atlas/case_display_block.html +++ b/atlas/templates/atlas/case_display_block.html @@ -823,7 +823,6 @@ {% include 'question_notes.html' %} -{% include 'atlas/partials/_displayset_modals.html' %}
Checked by: {% for verified in case.verified.all %} {{verified}}, {% endfor %}
@@ -1199,28 +1198,11 @@ } } - document.querySelectorAll(".view-displayset-modal").forEach(button => { - button.addEventListener("click", function () { - const url = this.getAttribute("data-url"); - const dsId = this.getAttribute('data-ds-id'); - loadDisplaysetModal(url, dsId); - }); - }); - // remove displayset param when modal closed document.getElementById('displaysetModal').addEventListener('hidden.bs.modal', function () { try { removeUrlParam('displayset'); removeUrlParam('displayset_full'); } catch (e) {} }); - // Fullscreen button handler: call loader function - document.querySelectorAll('.displayset-fullscreen-btn').forEach(btn => { - btn.addEventListener('click', function () { - const url = btn.dataset.url; - const dsId = btn.dataset.dsId || null; - loadDisplaysetFullscreen(url, dsId); - }); - }); - // remove fullscreen param when fullscreen modal closed document.getElementById('displaysetFullscreenModal').addEventListener('hidden.bs.modal', function () { try { removeUrlParam('displayset_full'); } catch (e) {} diff --git a/atlas/templates/atlas/partials/_case_displaysets.html b/atlas/templates/atlas/partials/_case_displaysets.html index aa00ab43..9fb75b10 100644 --- a/atlas/templates/atlas/partials/_case_displaysets.html +++ b/atlas/templates/atlas/partials/_case_displaysets.html @@ -89,8 +89,111 @@ +{% include 'atlas/partials/_displayset_modals.html' %} +