Switched studies in Session to ViewerStudies and WorklistStudies Collections. Fixes studyDate selector issues

This commit is contained in:
Erik Ziegler committed 2015-11-17 18:17:51 +01:00
1 parent aa7982b11b
commit 1511642000
17 files changed
+82 -78

No files matched your search

@@ -88,7 +88,12 @@ Template.viewer.onCreated(function() {
Session.set('activeViewport', ViewerData[contentId].activeViewport || 0);
Session.set("studies", this.data.studies);
// Update the ViewerStudies collection with the loaded studies
ViewerStudies = new Meteor.Collection(null);
this.data.studies.forEach(function(study) {
study.selected = true;
ViewerStudies.insert(study);
});
OHIF.viewer.updateImageSynchronizer = new cornerstoneTools.Synchronizer("CornerstoneNewImage", cornerstoneTools.updateImageSynchronizer);
});