From d666a3bf5cc85eea1cd6d25ecbdd2baf6205e8ce Mon Sep 17 00:00:00 2001 From: Ross Date: Thu, 19 Aug 2021 12:09:18 +0100 Subject: [PATCH] . --- anatomy/static/js/anatomy.js | 5 +++++ static/js/anatomy.js | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/anatomy/static/js/anatomy.js b/anatomy/static/js/anatomy.js index c3e4b016..d6dd3226 100644 --- a/anatomy/static/js/anatomy.js +++ b/anatomy/static/js/anatomy.js @@ -157,6 +157,11 @@ window.addEventListener('loadDicomViewer', function (e) { loadDicomViewer(images); }, false); +window.loadDicomViewerEvent = new Event('loadDicomViewerUrls'); +window.addEventListener('loadDicomViewerUrls', function (e) { + loadDicomViewer(e.detail); +}, false); + function loadDicomViewer(images_to_load) { console.log("loadDicomViewer", images_to_load); let single_dicom = document.getElementById("single-dicom-viewer"); diff --git a/static/js/anatomy.js b/static/js/anatomy.js index c3e4b016..d6dd3226 100644 --- a/static/js/anatomy.js +++ b/static/js/anatomy.js @@ -157,6 +157,11 @@ window.addEventListener('loadDicomViewer', function (e) { loadDicomViewer(images); }, false); +window.loadDicomViewerEvent = new Event('loadDicomViewerUrls'); +window.addEventListener('loadDicomViewerUrls', function (e) { + loadDicomViewer(e.detail); +}, false); + function loadDicomViewer(images_to_load) { console.log("loadDicomViewer", images_to_load); let single_dicom = document.getElementById("single-dicom-viewer");