AWV-1: Preventing looping on display set navigation
This commit is contained in:
1 parent
17f8d87d32
commit
8145e08f66
5 files changed
+54
-9
No files matched your search
+1
-1
@@ -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>
|
||||
|
||||
+8
-2
@@ -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) {
|
||||
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user