Work from Medken branch
This commit is contained in:
1 parent
bee1e38044
commit
31d34a3fb5
12 files changed
+944
-557
No files matched your search
+2
-2
@@ -1,6 +1,6 @@
|
||||
<template name="hangingProtocolButtons">
|
||||
<button id="previousPresentationGroup" type="button"
|
||||
class="imageViewerCommand btn btn-sm btn-default"
|
||||
class="btn btn-sm btn-default"
|
||||
data-container="body"
|
||||
data-toggle="tooltip"
|
||||
data-placement="bottom"
|
||||
@@ -9,7 +9,7 @@
|
||||
<span class="fa fa-step-backward"></span>
|
||||
</button>
|
||||
<button id="nextPresentationGroup" type="button"
|
||||
class="imageViewerCommand btn btn-sm btn-default"
|
||||
class="btn btn-sm btn-default"
|
||||
data-container="body"
|
||||
data-toggle="tooltip"
|
||||
data-placement="bottom"
|
||||
|
||||
+12
-1
@@ -1,7 +1,7 @@
|
||||
Template.hangingProtocolButtons.helpers({
|
||||
isNextAvailable: function() {
|
||||
var presentationGroup = Session.get('WindowManagerPresentationGroup');
|
||||
var numPresentationGroups = WindowManager.getNumPresentationGroups();
|
||||
var numPresentationGroups = Session.get('WindowManagerNumPresentationGroups');
|
||||
return presentationGroup < numPresentationGroups;
|
||||
},
|
||||
isPreviousAvailable: function() {
|
||||
@@ -9,3 +9,14 @@ Template.hangingProtocolButtons.helpers({
|
||||
return presentationGroup > 1;
|
||||
}
|
||||
});
|
||||
|
||||
Template.hangingProtocolButtons.events({
|
||||
'click #previousPresentationGroup': function(e) {
|
||||
$(e.currentTarget).tooltip('hide');
|
||||
WindowManager.previousPresentationGroup();
|
||||
},
|
||||
'click #nextPresentationGroup': function(e) {
|
||||
$(e.currentTarget).tooltip('hide');
|
||||
WindowManager.nextPresentationGroup();
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user