fix a few small linting issues

This commit is contained in:
Ross
2020-04-28 14:34:36 +01:00
parent bc3d08b517
commit d89f217f42
2 changed files with 29 additions and 27 deletions
+8 -7
View File
@@ -293,9 +293,9 @@ function loadQuestion(n, section = 1, force_reload = false) {
// otherwise try to load it as a dicom
} else {
// convert the data url to a file
helper.urltoFile(based_img, "dicom", "application/dicom").then(function (
dfile
) {
helper
.urltoFile(based_img, "dicom", "application/dicom")
.then(function (dfile) {
// load the file using cornerstoneWADO file loader
const imageId = cornerstoneWADOImageLoader.wadouri.fileManager.add(
dfile
@@ -348,7 +348,11 @@ function loadQuestion(n, section = 1, force_reload = false) {
} else if (data_url.startsWith("data:application/dicom")) {
// stack = stack.split(";")[1];
const dfile = await helper.urltoFile(data_url, "dicom", "application/dicom");
const dfile = await helper.urltoFile(
data_url,
"dicom",
"application/dicom"
);
const imageId = cornerstoneWADOImageLoader.wadouri.fileManager.add(
dfile
@@ -816,7 +820,6 @@ function createQuestionListPanel() {
});
}
/**
* Handle key button events
* These are the same as in the RCR pratique implementation
@@ -1566,7 +1569,6 @@ function loadFlagsFromDb(qid, n) {
});
}
function showLoginDialog() {
$("#login-dialog").modal();
}
@@ -1575,4 +1577,3 @@ $("#start-exam-button").click(function (evt) {
window.cid = parseInt($("#candidate-number").val());
$.modal.close();
});
+1
View File
@@ -1,3 +1,4 @@
/* global cornerstone, cornerstoneTools, cornerstoneBase64ImageLoader, cornerstoneWebImageLoader, cornerstoneWADOImageLoader */
/**
* Load the main image
* @param {*} image -