This commit is contained in:
Ross
2021-02-15 16:56:20 +00:00
parent 7538dc8d62
commit eb2b83efd8
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -78,8 +78,8 @@ window.loadDicomViewerEvent = new Event('loadDicomViewer');
window.addEventListener('loadDicomViewer', function (e) {
console.log("listen", e.detail)
let images = [];
console.log($("#images img"));
$("#images img").each((n, el) => {
console.log($("#image_form_set img"));
$("#image_form_set img").each((n, el) => {
images.push($(el).attr("src"));
} );
console.log("listen2", images)
+1 -1
View File
@@ -263,7 +263,7 @@
image_set = $("#image_form_set img");
if (n == image_set.length) {
const event = new CustomEvent('loadDicomViewer', { "detail": images });
const event = new CustomEvent('loadDicomViewer', { "detail": image_set });
window.dispatchEvent(event);
updateImagePositions();
+1 -1
View File
@@ -148,7 +148,7 @@ USE_TZ = True
# https://docs.djangoproject.com/en/1.11/howto/static-files/
STATIC_URL = '/static/'
STATIC_ROOT = '/home/django/rad/static/'
STATIC_ROOT = 'static/'
REMOTE_URL = "http://penracourses.org.uk"
#