LT-115: Set CR/UN/EX buttons as enabled for follow-up timepoints

This commit is contained in:
Aysel Afsar committed 2016-03-02 15:49:20 -05:00
1 parent 7cebd3c91c
commit cd4a9a51da
7 files changed
+49 -24

No files matched your search

+3 -9
View File
@@ -121,6 +121,9 @@ Template.viewer.onCreated(function() {
if (subscriptionsReady) {
// Set buttons as enabled/disabled when Timepoints collection is ready
timepointAutoCheck(dataContext);
TrialResponseCriteria.validateAllDelayed();
ViewerStudies.find().observe({
@@ -261,15 +264,6 @@ Template.viewer.onCreated(function() {
TrialResponseCriteria.validateAll();
}
});
// Set active tool for timepoint
if (dataContext && dataContext.timepointIds) {
dataContext.timepointIds.forEach(function(timepointId) {
var timepoint = Timepoints.findOne({timepointId: timepointId});
setTimepointActiveTool(timepoint);
});
}
}
});
});