LT-182: Display study date/thumbnails of the selected study as default
This commit is contained in:
1 parent
f26fc22cef
commit
9bcb9be471
2 files changed
+3
-5
No files matched your search
@@ -19,14 +19,14 @@ Template.studyDateList.helpers({
|
||||
sort: {
|
||||
studyDate: -1
|
||||
}
|
||||
});
|
||||
}).fetch();
|
||||
|
||||
// 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,
|
||||
// Set this to 'selected', so that it becomes the default option
|
||||
if (study.studyInstanceUid === currentStudyInBrowser.studyInstanceUid) {
|
||||
study.selected = true;
|
||||
relatedStudies[index].selected = true;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user