From 3b9942054d26bf2638eb90e2ba736fc193c065ab Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 9 Feb 2026 10:34:20 +0000 Subject: [PATCH] Increase timeout for loading display set details and remove redundant script from modal --- atlas/templates/atlas/case_display_block.html | 2 +- atlas/templates/atlas/case_displayset_modal.html | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/atlas/templates/atlas/case_display_block.html b/atlas/templates/atlas/case_display_block.html index 83f11cb0..5aa8800e 100755 --- a/atlas/templates/atlas/case_display_block.html +++ b/atlas/templates/atlas/case_display_block.html @@ -800,7 +800,7 @@ dsModalBody.innerHTML = html; setTimeout(function () { try { window.mountDicomViewers(); } catch (e) { console.warn('mountDicomViewers not available', e); } - }, 200); + }, 500); }) .catch(error => { console.error("Error loading display set details:", error); diff --git a/atlas/templates/atlas/case_displayset_modal.html b/atlas/templates/atlas/case_displayset_modal.html index 90304d6c..963fe34e 100644 --- a/atlas/templates/atlas/case_displayset_modal.html +++ b/atlas/templates/atlas/case_displayset_modal.html @@ -19,15 +19,6 @@ onclick='(window.importAnnotations_modal_viewer_{{ ds.pk }}||window.importAnnotations_modal_viewer||window.importAnnotations)({{ ds.annotations|safe }}); (window.importViewerState_modal_viewer_{{ ds.pk }}||window.importViewerState_modal_viewer||window.importViewerState)({{ ds.viewerstate|safe }});' >Reload display set - {% endif %}