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 // otherwise try to load it as a dicom
} else { } else {
// convert the data url to a file // convert the data url to a file
helper.urltoFile(based_img, "dicom", "application/dicom").then(function ( helper
dfile .urltoFile(based_img, "dicom", "application/dicom")
) { .then(function (dfile) {
// load the file using cornerstoneWADO file loader // load the file using cornerstoneWADO file loader
const imageId = cornerstoneWADOImageLoader.wadouri.fileManager.add( const imageId = cornerstoneWADOImageLoader.wadouri.fileManager.add(
dfile dfile
@@ -348,7 +348,11 @@ function loadQuestion(n, section = 1, force_reload = false) {
} else if (data_url.startsWith("data:application/dicom")) { } else if (data_url.startsWith("data:application/dicom")) {
// stack = stack.split(";")[1]; // 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( const imageId = cornerstoneWADOImageLoader.wadouri.fileManager.add(
dfile dfile
@@ -816,7 +820,6 @@ function createQuestionListPanel() {
}); });
} }
/** /**
* Handle key button events * Handle key button events
* These are the same as in the RCR pratique implementation * These are the same as in the RCR pratique implementation
@@ -1566,7 +1569,6 @@ function loadFlagsFromDb(qid, n) {
}); });
} }
function showLoginDialog() { function showLoginDialog() {
$("#login-dialog").modal(); $("#login-dialog").modal();
} }
@@ -1575,4 +1577,3 @@ $("#start-exam-button").click(function (evt) {
window.cid = parseInt($("#candidate-number").val()); window.cid = parseInt($("#candidate-number").val());
$.modal.close(); $.modal.close();
}); });
+1
View File
@@ -1,3 +1,4 @@
/* global cornerstone, cornerstoneTools, cornerstoneBase64ImageLoader, cornerstoneWebImageLoader, cornerstoneWADOImageLoader */
/** /**
* Load the main image * Load the main image
* @param {*} image - * @param {*} image -