LT-251: Making series switch behave like demonstrated in the design video

This commit is contained in:
Bruno Alves de Faria authored and Erik Ziegler committed 2016-07-22 11:08:27 +02:00
1 parent c623faea94
commit c8fdf0522e
4 files changed
+62 -19

No files matched your search

@@ -33,6 +33,15 @@ Template.studySeriesQuickSwitch.onCreated(() => {
};
});
Template.studySeriesQuickSwitch.events({
'mouseenter .js-quick-switch, mouseenter .js-quick-switch .switchSectionSeries'(event, instance) {
$(event.currentTarget).addClass('hover');
},
'mouseleave .js-quick-switch'(event, instance) {
instance.$('.js-quick-switch, .switchSectionSeries').removeClass('hover');
}
});
Template.studySeriesQuickSwitch.helpers({
// Get the current study and change the reactive variable
currentStudy() {