Fix prefetch bug in imageViewerViewports

This commit is contained in:
Erik Ziegler 2015-11-06 18:01:39 +01:00
parent b49c36493e
commit 1d025623e5

View File

@ -294,6 +294,10 @@ function loadSeriesIntoViewport(data) {
OHIF.viewer.updateImageSynchronizer.add(element);
displayReferenceLines(element);
}
if (viewportIndex === Session.get('activeViewport')) {
enablePrefetchOnElement(element);
}
}, function(error) {
// If something goes wrong while loading the image, fire the error handler.
errorLoadingHandler(element, imageId, error);