2015-11-20 19:35:31 +01:00
|
|
|
Template.hangingProtocolButtons.helpers({
|
2016-02-09 23:46:04 +01:00
|
|
|
isNextAvailable: function() {
|
2015-11-20 19:35:31 +01:00
|
|
|
var presentationGroup = Session.get('WindowManagerPresentationGroup');
|
|
|
|
|
var numPresentationGroups = WindowManager.getNumPresentationGroups();
|
|
|
|
|
return presentationGroup < numPresentationGroups;
|
|
|
|
|
},
|
2016-02-09 23:46:04 +01:00
|
|
|
isPreviousAvailable: function() {
|
2015-11-20 19:35:31 +01:00
|
|
|
var presentationGroup = Session.get('WindowManagerPresentationGroup');
|
|
|
|
|
return presentationGroup > 1;
|
|
|
|
|
}
|
2016-02-09 23:46:04 +01:00
|
|
|
});
|