.
This commit is contained in:
@@ -78,8 +78,8 @@ window.loadDicomViewerEvent = new Event('loadDicomViewer');
|
|||||||
window.addEventListener('loadDicomViewer', function (e) {
|
window.addEventListener('loadDicomViewer', function (e) {
|
||||||
console.log("listen", e.detail)
|
console.log("listen", e.detail)
|
||||||
let images = [];
|
let images = [];
|
||||||
console.log($("#images img"));
|
console.log($("#image_form_set img"));
|
||||||
$("#images img").each((n, el) => {
|
$("#image_form_set img").each((n, el) => {
|
||||||
images.push($(el).attr("src"));
|
images.push($(el).attr("src"));
|
||||||
} );
|
} );
|
||||||
console.log("listen2", images)
|
console.log("listen2", images)
|
||||||
|
|||||||
@@ -263,7 +263,7 @@
|
|||||||
|
|
||||||
image_set = $("#image_form_set img");
|
image_set = $("#image_form_set img");
|
||||||
if (n == image_set.length) {
|
if (n == image_set.length) {
|
||||||
const event = new CustomEvent('loadDicomViewer', { "detail": images });
|
const event = new CustomEvent('loadDicomViewer', { "detail": image_set });
|
||||||
|
|
||||||
window.dispatchEvent(event);
|
window.dispatchEvent(event);
|
||||||
updateImagePositions();
|
updateImagePositions();
|
||||||
|
|||||||
+1
-1
@@ -148,7 +148,7 @@ USE_TZ = True
|
|||||||
# https://docs.djangoproject.com/en/1.11/howto/static-files/
|
# https://docs.djangoproject.com/en/1.11/howto/static-files/
|
||||||
|
|
||||||
STATIC_URL = '/static/'
|
STATIC_URL = '/static/'
|
||||||
STATIC_ROOT = '/home/django/rad/static/'
|
STATIC_ROOT = 'static/'
|
||||||
|
|
||||||
REMOTE_URL = "http://penracourses.org.uk"
|
REMOTE_URL = "http://penracourses.org.uk"
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user