OHIF-151 Fix issue with next and prev buttons in the toolbar and cine dialog

This commit is contained in:
Evren Ozkan 2017-02-01 17:24:44 -05:00
parent d43fec0147
commit dff42c0360
2 changed files with 3 additions and 3 deletions

View File

@ -63,8 +63,8 @@ Template.cineDialog.onCreated(() => {
// Define the actions API
instance.api = {
displaySetPrevious: () => OHIF.viewer.moveDisplaySets(false),
displaySetNext: () => OHIF.viewer.moveDisplaySets(true),
displaySetPrevious: () => OHIF.viewerbase.layoutManager.moveDisplaySets(false),
displaySetNext: () => OHIF.viewerbase.layoutManager.moveDisplaySets(true),
cineToggle: () => viewportUtils.toggleCinePlay(),
cineFirst: () => switchToImageByIndex(0),
cineLast: () => switchToImageByIndex(-1),

View File

@ -7,7 +7,7 @@ Template.displaySetNavigation.events({
return;
}
OHIF.viewer.moveDisplaySets(true);
OHIF.viewerbase.layoutManager.moveDisplaySets(true);
},
'click .js-prev'(event, instance) {