Fix OHIF global variable definition bug in OHIF Viewer, moved resizeViewportElements to viewerbase

This commit is contained in:
Erik Ziegler committed 2015-12-15 10:20:57 -05:00
1 parent 37fa29cce4
commit 86c8a32e2a
8 files changed
+31 -48

No files matched your search

@@ -23,6 +23,13 @@ Template.playClipButton.helpers({
'isPlaying': function() {
Session.get('UpdateCINE');
var activeViewport = Session.get('activeViewport');
// TODO=Check best way to make sure this is always defined
// Right now it is initialized in enableHotkeys AND in
// imageViewer onCreated, but this appears to break some things
if (!OHIF.viewer.isPlaying) {
return;
}
return !!OHIF.viewer.isPlaying[activeViewport];
}
});