Removing serverInformationModal from DOM

This commit is contained in:
Bruno Alves de Faria committed 2017-03-21 10:16:46 -03:00
1 parent 2a5699a5b7
commit 91abaf8a60
19 files changed
+72 -86

No files matched your search

+11
View File
@@ -51,3 +51,14 @@ OHIF.blaze.getParentTemplateView = view => {
}
}
};
// Get the view that contains the desired section's content and return it
OHIF.blaze.getSectionContent = (view, sectionName) => {
let currentView = view;
while (!currentView._sectionMap || !currentView._sectionMap.get(sectionName)) {
currentView = OHIF.blaze.getParentTemplateView(currentView);
if (!currentView) return;
}
return currentView._sectionMap.get(sectionName);
};