LT-182: Display study date/thumbnails of the selected study as default
This commit is contained in:
parent
f26fc22cef
commit
9bcb9be471
@ -19,14 +19,14 @@ Template.studyDateList.helpers({
|
|||||||
sort: {
|
sort: {
|
||||||
studyDate: -1
|
studyDate: -1
|
||||||
}
|
}
|
||||||
});
|
}).fetch();
|
||||||
|
|
||||||
// Modify the array of related studies so the default option is the currently selected study
|
// Modify the array of related studies so the default option is the currently selected study
|
||||||
relatedStudies.forEach(function(study) {
|
relatedStudies.forEach(function(study, index) {
|
||||||
// If the studyInstanceUid matches that of the current study in the browser,
|
// If the studyInstanceUid matches that of the current study in the browser,
|
||||||
// Set this to 'selected', so that it becomes the default option
|
// Set this to 'selected', so that it becomes the default option
|
||||||
if (study.studyInstanceUid === currentStudyInBrowser.studyInstanceUid) {
|
if (study.studyInstanceUid === currentStudyInBrowser.studyInstanceUid) {
|
||||||
study.selected = true;
|
relatedStudies[index].selected = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -14,8 +14,6 @@ function dblClickOnStudy(data) {
|
|||||||
studyInstanceUid: data.studyInstanceUid
|
studyInstanceUid: data.studyInstanceUid
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(study);
|
|
||||||
|
|
||||||
// Check if the study has been associated, and if not, just open it on its own
|
// Check if the study has been associated, and if not, just open it on its own
|
||||||
if (!study) {
|
if (!study) {
|
||||||
// Open a new tab with this study
|
// Open a new tab with this study
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user