LT-182: Display study date/thumbnails of the selected study as default

This commit is contained in:
Aysel Afsar 2016-02-24 15:13:30 -05:00
parent f26fc22cef
commit 9bcb9be471
2 changed files with 3 additions and 5 deletions

View File

@ -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;
} }
}); });

View File

@ -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