.
This commit is contained in:
@@ -33,7 +33,7 @@
|
|||||||
function getUnusedInputs(inputs) {
|
function getUnusedInputs(inputs) {
|
||||||
new_inputs = [];
|
new_inputs = [];
|
||||||
for (let i = 0; i < inputs.length; i++) {
|
for (let i = 0; i < inputs.length; i++) {
|
||||||
input = inputs.get(i);
|
input = inputs.get(i);
|
||||||
|
|
||||||
if (!input.value) {
|
if (!input.value) {
|
||||||
new_inputs.push(input);
|
new_inputs.push(input);
|
||||||
@@ -458,14 +458,16 @@
|
|||||||
console.log("STUDY", study_description);
|
console.log("STUDY", study_description);
|
||||||
|
|
||||||
// try to match with a study description
|
// try to match with a study description
|
||||||
option = $(`#id_examination_from option[title*='${study_description}' i]`);
|
if ($(`#id_examination_from option`).length < 1) {
|
||||||
|
option = $(`#id_examination_from option[title*='${study_description}' i]`);
|
||||||
|
|
||||||
if (option.length) {
|
if (option.length) {
|
||||||
option.appendTo($("#id_examination_to"));
|
option.appendTo($("#id_examination_to"));
|
||||||
toastr.success(`Examination set to ${option.attr('title')} from dicom data`);
|
toastr.success(`Examination set to ${option.attr('title')} from dicom data`);
|
||||||
} else {
|
} else {
|
||||||
toastr.warning(`Unable to set examination ${study_description} from dicom data (it needs creating)`);
|
toastr.warning(`Unable to set examination ${study_description} from dicom data (it needs creating)`);
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user