Clicking the active tool toggles it off and resets to default tool. Added some error handling in getStudyMetadata.

This commit is contained in:
Erik Ziegler committed 2015-12-15 16:41:04 -05:00
1 parent 86c8a32e2a
commit a647666bf3
2 files changed
+18 -2

No files matched your search

+8
View File
@@ -42,6 +42,10 @@ getStudyMetadata = function(studyInstanceUid, doneCallback) {
// If no study metadata is in the cache variable, we need to retrieve it from
// the server with a call.
Meteor.call('GetStudyMetadata', studyInstanceUid, function(error, study) {
if (error) {
log.warn(error);
return;
}
// Once we have retrieved the data, we sort the series' by series
// and instance number in ascending order
sortStudy(study);
@@ -108,6 +112,10 @@ switchToTab = function(contentId) {
studies: [study]
};
if (ViewerData[contentId].studies && ViewerData[contentId].studies.length) {
data.studies = ViewerData[contentId].studies;
}
// Remove the loading text template that is inside the tab container by default
container.innerHTML = "";