Updates to fix dialogs for non-target lesions.

This commit is contained in:
Erik Ziegler committed 2015-12-09 14:26:11 +01:00
1 parent da197368bf
commit a005e5b359
10 files changed
+194 -126

No files matched your search

@@ -1,7 +1,27 @@
toggleCinePlay = function(element) {
var viewportIndex = $('.imageViewerViewport').index(element);
var isPlaying = OHIF.viewer.isPlaying[viewportIndex] || false;
if (isPlaying === true) {
cornerstoneTools.stopClip(element);
} else {
cornerstoneTools.playClip(element);
}
OHIF.viewer.isPlaying[viewportIndex] = !OHIF.viewer.isPlaying[viewportIndex];
Session.set('UpdateCINE', Random.id());
};
Template.playClipButton.helpers({
'isPlaying': function() {
Session.get('UpdateCINE');
var activeViewport = Session.get('activeViewport');
return !!OHIF.viewer.isPlaying[activeViewport];
}
});
Template.playClipButton.events({
'click #playClip': function() {
var activeViewport = Session.get('activeViewport');
var element = $('.imageViewerViewport').get(activeViewport);
toggleCinePlay(element);
}
});