AWV-1: Preventing looping on display set navigation

This commit is contained in:
Bruno Alves de Faria committed 2016-09-01 16:17:43 -03:00
1 parent 17f8d87d32
commit 8145e08f66
5 files changed
+54 -9

No files matched your search

@@ -9,7 +9,7 @@
<i class="fa fa-toggle-down fa-fw"></i>
{{/if}}
</div>
<div class="buttonLabel">
<div class="buttonLabel" disabled="{{#if (disableButton isPrevious)}}disabled{{/if}}">
{{#if isPrevious}}Previous{{else}}Next{{/if}}
</div>
</div>
@@ -3,10 +3,16 @@ import { Template } from 'meteor/templating';
Template.displaySetNavigation.events({
'click .js-next'(event, instance) {
OHIF.viewer.moveDisplaySet(true);
OHIF.viewer.moveDisplaySets(true);
},
'click .js-prev'(event, instance) {
OHIF.viewer.moveDisplaySet(false);
OHIF.viewer.moveDisplaySets(false);
}
});
Template.displaySetNavigation.helpers({
disableButton(isPrevious) {
}
});