diff --git a/anatomy/static/js/anatomy.js b/anatomy/static/js/anatomy.js index fdfb4c72..043fa887 100644 --- a/anatomy/static/js/anatomy.js +++ b/anatomy/static/js/anatomy.js @@ -78,8 +78,8 @@ $(document).ready(function () { } -// $(document).keydown(keyDownHandler); -// $(document).keyup(keyUpHandler); + // $(document).keydown(keyDownHandler); + // $(document).keyup(keyUpHandler); $("#button-select-add-exam").click(function (evt) { // Find selected objects @@ -310,7 +310,7 @@ function setUpDicom(element) { if (imageIds[index].endsWith("dcm")) { imageIds[index] = "wadouri:" + imageIds[index]; } - + } cornerstone.enable(element); @@ -369,6 +369,8 @@ function setUpDicom(element) { cornerstone.resize(element); + }).catch((err, err2) => { + console.log(err); }); } diff --git a/static/js/anatomy.js b/static/js/anatomy.js index fdfb4c72..043fa887 100644 --- a/static/js/anatomy.js +++ b/static/js/anatomy.js @@ -78,8 +78,8 @@ $(document).ready(function () { } -// $(document).keydown(keyDownHandler); -// $(document).keyup(keyUpHandler); + // $(document).keydown(keyDownHandler); + // $(document).keyup(keyUpHandler); $("#button-select-add-exam").click(function (evt) { // Find selected objects @@ -310,7 +310,7 @@ function setUpDicom(element) { if (imageIds[index].endsWith("dcm")) { imageIds[index] = "wadouri:" + imageIds[index]; } - + } cornerstone.enable(element); @@ -369,6 +369,8 @@ function setUpDicom(element) { cornerstone.resize(element); + }).catch((err, err2) => { + console.log(err); }); }